ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Core Namespace / IProjectItem Interface / OnAddToProject Method

OnAddToProject Method (IProjectItem)
Callback whenever a project item has been added to a project
Syntax
void OnAddToProject()
Remarks
Also called whenever a "remove project item" operation is undone
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also