ArcGIS Pro 2.6 API Reference Guide
CreateItem Method

ArcGIS.Desktop.Core Namespace > CustomProjectItemContainer<T> Class : CreateItem Method
The name of the item
The physical path of the item
The container type.
For internal use. This will be an empty string
Create a project item. CreateItem is called when items are being added to the project.
Syntax
public override Item CreateItem( 
   string name,
   string path,
   string containerType,
   string data
)
Public Overrides Function CreateItem( _
   ByVal name As String, _
   ByVal path As String, _
   ByVal containerType As String, _
   ByVal data As String _
) As Item

Parameters

name
The name of the item
path
The physical path of the item
containerType
The container type.
data
For internal use. This will be an empty string

Return Value

A custom project item of the type stored in this container
Remarks
Internally, the base implementation of CreateItem calls CreateItemPrototype. Customizations to the creation of your custom project items should ideally be added to CreateItemPrototype.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

CustomProjectItemContainer<T> Class
CustomProjectItemContainer<T> Members