ArcGIS Pro 2.7 API Reference Guide
CloseAsync Method (EmbeddableControl)

ArcGIS.Desktop.Framework.Controls Namespace > EmbeddableControl Class : CloseAsync Method
Occurs when the controls is closed.
Syntax
public virtual Task CloseAsync()
Public Overridable Function CloseAsync() As Task
Remarks
Leaf classes should override this function if they need to perform any asynchronous cleanup when the control is removed.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

EmbeddableControl Class
EmbeddableControl Members