ArcGIS Pro 2.9 API Reference Guide
OnRemoveFromProject Method (IProjectItem)

ArcGIS.Desktop.Core Namespace > IProjectItem Interface : OnRemoveFromProject Method
Callback whenever a project item is going to be removed from a project
Syntax
void OnRemoveFromProject()
Sub OnRemoveFromProject() 
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

IProjectItem Interface
IProjectItem Members