ModulePage.OnDeactivating(CancelEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a mechanism to cancel the page view change.
protected:
virtual void OnDeactivating(System::ComponentModel::CancelEventArgs ^ e);
protected virtual void OnDeactivating (System.ComponentModel.CancelEventArgs e);
abstract member OnDeactivating : System.ComponentModel.CancelEventArgs -> unit
override this.OnDeactivating : System.ComponentModel.CancelEventArgs -> unit
Protected Overridable Sub OnDeactivating (e As CancelEventArgs)
Parameters
A CancelEventArgs that contains the event data.
Implements
Examples
The following example implements this method.
protected override void OnActivated(bool initialActivation) {
base.OnActivated(initialActivation);
initProxyRefresh(initialActivation);
initClmHdr();
}
Remarks
Set the Cancel property of the System.ComponentModel.CancelEventArgs object specified in the e
parameter to true
to cancel the page change.