ModulePage.HasChanges 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.
Gets a value indicating whether the ModulePage object has changes.
protected:
virtual property bool HasChanges { bool get(); };
protected virtual bool HasChanges { get; }
member this.HasChanges : bool
Protected Overridable ReadOnly Property HasChanges As Boolean
Property Value
true
if the ModulePage object has changes; otherwise, false
.
Implements
Examples
The following example implements this method.
protected override bool HasChanges {
get {
TaskListCollection tasks = Tasks;
if (tasks != null && tasks.Count > 0) {
foreach (TaskList taskList in tasks) {
if (taskList.IsDirty) {
return true;
}
}
}
return false;
}
}
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for