ArcGIS Pro 2.7 API Reference Guide
OnGetInfo Method

ArcGIS.Desktop.Core Namespace > CustomProjectItemBase Class : OnGetInfo Method
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 10, Windows 8.1

See Also

Reference

CustomProjectItemBase Class
CustomProjectItemBase Members