ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TrayButton Class / Dispose Method

Dispose Method (TrayButton)
Overload List
OverloadDescription
Invoked when the enclosing View is closed and disposed.  
When invoked, ensures Dispose(Boolean) is invoked only once.  
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 3.0 or higher.
See Also