ArcGIS Pro 2.8 API Reference Guide
OnAddToProject Method (CustomProjectItemBase)

ArcGIS.Desktop.Core Namespace > CustomProjectItemBase Class : OnAddToProject Method
Callback when your custom item is being added to the project
Syntax
public virtual void OnAddToProject()
Public Overridable Sub OnAddToProject() 
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

CustomProjectItemBase Class
CustomProjectItemBase Members