Share via


ModulePage.OnDeactivating(CancelEventArgs) Method

Definition

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

e
CancelEventArgs

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.

Applies to