ArcGIS Pro 2.7 API Reference Guide
OnRemoveFromProject Method (CustomProjectItemBase)

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

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

CustomProjectItemBase Class
CustomProjectItemBase Members