ArcGIS Pro 3.2 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

In This Topic
    CreateItem Method
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also