ArcGIS Pro 3.0 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 abstract ProjectItemInfo OnGetInfo()
    Public MustOverride Function OnGetInfo() As ProjectItemInfo

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

    See Also