Share via


ModulePage.HasChanges Property

Definition

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