ModuleDialogPage.CanApplyChanges Property
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.
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
.