ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / CustomProjectItemBase Class / OnGetInfo Method

In This Topic
    OnGetInfo Method
    In This Topic
    Returns a ProjectItemInfo needed to add your custom project item information to a given project.
    Syntax
    Public MustOverride Function OnGetInfo() As ProjectItemInfo
    public abstract ProjectItemInfo OnGetInfo()

    Return Value

    Remarks
    Within OnGetInfo, the ProjectItemInfo should be populated as follows:
    o ProjectItemInfo Name: your Item.Name
    o ProjectItemInfo Type: Your Container Type
    o ProjectItemInfo Path: Your physical path to the item
    o ProjectItemInfo Data: Empty string. For internal use only
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also