ArcGIS Pro 2.6 API Reference Guide
CanUnload Method

ArcGIS.Desktop.Framework.Contracts Namespace > Module Class : CanUnload Method
When overridden in a derived class, a Module can return that it can't be unloaded.
Syntax
protected internal virtual bool CanUnload()
Protected Friend Overridable Function CanUnload() As Boolean
Remarks
If the Framework makes the determination that a Module should be unloaded, it will first call CanUnload to verify with the Module that it is okay to do so.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Module Class
Module Members