ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Framework.Controls Namespace / EmbeddableControl Class / CloseAsync Method

CloseAsync Method (EmbeddableControl)
Occurs when the controls is closed.
Syntax
public virtual Task CloseAsync()
Remarks
Leaf classes should override this function if they need to perform any asynchronous cleanup when the control is removed.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also