ITrackingPersonalizable.TracksChanges Property

Definition

Indicates whether the control tracks the status of its changes.

C#
public bool TracksChanges { get; }

Property Value

true if the Web Parts control is responsible for determining when the control is considered changed ("dirty"); otherwise, false.

Examples

The following code example demonstrates setting the TracksChanges property. For a complete, working code example that consists of a control and an .aspx page, see the ITrackingPersonalizable class overview topic.

C#
bool ITrackingPersonalizable.TracksChanges
{
    get
    {
        return true;
    }
}

Remarks

If a control returns true from this property, then it is the Web Parts control's responsibility to determine when it considers itself "dirty." If a control determines that it has changed (is "dirty"), that control must call SetPersonalizationDirty on itself.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1