View.OnShutdown Method (SyncStatus)
Called when a view needs be shut down.
Namespace: Microsoft.ManagementConsole
Assembly: Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)
Syntax
protected virtual void OnShutdown(
SyncStatus status
)
protected:
virtual void OnShutdown(
SyncStatus^ status
)
abstract OnShutdown :
status:SyncStatus -> unit
override OnShutdown :
status:SyncStatus -> unit
Protected Overridable Sub OnShutdown (
status As SyncStatus
)
Parameters
status
Type: Microsoft.ManagementConsole.SyncStatusThe status object to be updated.
Remarks
The OnShutdown method is called when a view is unloaded from the memory. Up to ten views are cached by MMC. When a user opens the eleventh view, OnShutdown is automatically called on the least recently used view among the ten currently open views. The recommended way for an instance of ScopeNode to interact with its associated views is through events. A scope node can publish events that views can subscribe to and unsubscribe from in their implementation of OnInitialize and OnShutdown methods respectively.
Note The two methods SnapInBase.OnShutdown and View.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. The snap-in should not use the view instance after returning from this method.
See Also
OnShutdown
View Class
Microsoft.ManagementConsole Namespace
Return to top