ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Framework Namespace / FrameworkApplication Class / ShutdownAsync Method / ShutdownAsync() Method

In This Topic
    ShutdownAsync() Method
    In This Topic
    Try to shut down the application.
    Syntax
    public static Task<bool> ShutdownAsync()
    Public Overloads Shared Function ShutdownAsync() As Task(Of Boolean)
    Remarks
    This method first fires the ApplicationClosingEvent giving all clients an opportunity to cancel the shutdown. If no event sink rejects the shutdown request, the loaded Modules are consulted (see ArcGIS.Desktop.Framework.Contracts.Module.CanUnload for their status. A Module may block the application from closing if it has pending edits for example.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also