Share via


ModuleDialogPage.CanApplyChanges Property

Definition

When overridden in a derived class, gets a value indicating whether the page can apply internal state changes.

protected:
 abstract property bool CanApplyChanges { bool get(); };
protected abstract bool CanApplyChanges { get; }
member this.CanApplyChanges : bool
Protected MustOverride ReadOnly Property CanApplyChanges As Boolean

Property Value

true if the page can apply internal state changes; otherwise, false.

Examples

The following example implements the CanApplyChanges property.

protected override bool CanApplyChanges {
    get {
        return _hasChanges &&
            _canAccept &&
            CanChangeSettings;
    }
} 

Remarks

If the page is not in a submittable state (for example, if it is waiting for an asynchronous method to complete), this property should return false.

Applies to