Share via


SnapInBase.OnShutdown Method (AsyncStatus)

 

Called when the snap-in is shutting down. Once this call returns, actions which modify the console, such as adding nodes, or modifying view descriptions, are not honored.

Namespace:   Microsoft.ManagementConsole
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)

Syntax

protected virtual void OnShutdown(
    AsyncStatus status
)
protected:
virtual void OnShutdown(
    AsyncStatus^ status
)
abstract OnShutdown : 
        status:AsyncStatus -> unit
override OnShutdown : 
        status:AsyncStatus -> unit
Protected Overridable Sub OnShutdown (
    status As AsyncStatus
)

Parameters

Remarks

Modal dialogs should not be shown during any request that takes an AsyncStatus object as a parameter.

The two methods OnShutdown and OnShutdown are independent in their behavior. The former is called when a snap-in is shutting down, while the latter is called when a view is being closed by MMC. An implementation of the View class in the application should handle the call to the OnShutdown method by overriding it appropriately.

See Also

SnapInBase Class
Microsoft.ManagementConsole Namespace

Return to top