DialogPage.OnApply Method
Handles Apply 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
'Déclaration
Protected Overridable Sub OnApply ( _
e As DialogPage..::..PageApplyEventArgs _
)
'Utilisation
Dim e As DialogPage..::..PageApplyEventArgs
Me.OnApply(e)
protected virtual void OnApply(
DialogPage..::..PageApplyEventArgs e
)
protected:
virtual void OnApply(
DialogPage..::..PageApplyEventArgs^ e
)
abstract OnApply :
e:DialogPage..::..PageApplyEventArgs -> unit
override OnApply :
e:DialogPage..::..PageApplyEventArgs -> unit
protected function OnApply(
e : DialogPage..::..PageApplyEventArgs
)
Parameters
- e
Type: Microsoft.VisualStudio.Shell.DialogPage.PageApplyEventArgs
[in] Arguments to event handler.
Remarks
This method is a handler for Windows-based events, and is not a managed delegate.
An Apply message is sent, and this method is called when properties have been modified through the user interface of the dialog page and the user interface has been dismissed, or when the user interface explicitly generates an apply single, for example, in response to a user clicking an Apply button.
The default implementation saves the current state to local storage (typically the registry) by calling SaveSettingsToStorage.
To ensure that state is properly saved, overriding implementations should either call the base implementation of the method, or explicitly save the state itself.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.