ArcGIS Pro 2.8 API Reference Guide
AddItem Method (Project)

ArcGIS.Desktop.Core Namespace > Project Class : AddItem Method
The Item to be added to the project
Adds the item to the current project. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public bool AddItem( 
   IProjectItem item
)
Public Function AddItem( _
   ByVal item As IProjectItem _
) As Boolean

Parameters

item
The Item to be added to the project

Return Value

Returns a bool indicating whether or not the item was added successfully.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Project Class
Project Members