ArcGIS Pro 3.4 API Reference Guide
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
Version

CreateItem Method
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
)

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 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also