Editar

Partilhar via


ITrackingPersonalizable.TracksChanges Property

Definition

Indicates whether the control tracks the status of its changes.

public:
 property bool TracksChanges { bool get(); };
public bool TracksChanges { get; }
member this.TracksChanges : bool
Public ReadOnly Property TracksChanges As Boolean

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.

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

ReadOnly Property TracksChanges() As Boolean Implements ITrackingPersonalizable.TracksChanges
    Get
        Return True
    End Get
End Property

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