다음을 통해 공유


DialogPage.OnClosed Method

Handles Close messages from the Visual Studio environment.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

‘선언
Protected Overridable Sub OnClosed ( _
    e As EventArgs _
)
‘사용 방법
Dim e As EventArgs

Me.OnClosed(e)
protected virtual void OnClosed(
    EventArgs e
)
protected:
virtual void OnClosed(
    EventArgs^ e
)
abstract OnClosed : 
        e:EventArgs -> unit 
override OnClosed : 
        e:EventArgs -> unit 
protected function OnClosed(
    e : EventArgs
)

Parameters

Remarks

This method is a handler for Windows-based events, and is not a managed delegate.

A Close message is sent when a dialog page's user interface window has been closed.

The default implementation reloads the state of the dialog page from storage, to guarantee that if the object is accessed in the future, it has the correct state.

In addition, the default implementation sets the dialog page's internal user interface state to inactive.

Because this state is used throughout the parent class, when overriding implementations, it should always call the base implementation of this method.

.NET Framework Security

See Also

Reference

DialogPage Class

DialogPage Members

Microsoft.VisualStudio.Shell Namespace