ContactChangeTracker ContactChangeTracker ContactChangeTracker ContactChangeTracker Class

Definition

Provides functionality for monitoring changes to Contact objects in the ContactStore.

public : sealed class ContactChangeTracker : IContactChangeTracker
public sealed class ContactChangeTracker : IContactChangeTracker
Public NotInheritable Class ContactChangeTracker Implements IContactChangeTracker
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

Remarks

Use ContactStore.ChangeTracker or ContactList.ChangeTracker to get an instance of this class.

Properties

IsTracking IsTracking IsTracking IsTracking

Gets a Boolean value indicating whether change tracking is active.

public : Platform::Boolean IsTracking { get; }
public bool IsTracking { get; }
Public ReadOnly Property IsTracking As bool
var bool = contactChangeTracker.isTracking;
Value
Platform::Boolean bool bool bool

A Boolean value indicating whether change tracking is active.

Additional features and requirements
Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
Capabilities
contactsSystem

Methods

Enable() Enable() Enable() Enable()

Call this method to enable change tracking.

public : void Enable()
public void Enable()
Public Function Enable() As void
contactChangeTracker.enable();
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

GetChangeReader() GetChangeReader() GetChangeReader() GetChangeReader()

Gets a ContactChangeReader that can be used to process changes.

public : ContactChangeReader GetChangeReader()
public ContactChangeReader GetChangeReader()
Public Function GetChangeReader() As ContactChangeReader
var contactChangeReader = contactChangeTracker.getChangeReader();
Returns
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem

Reset() Reset() Reset() Reset()

Call this method to reset the change tracker if your app receives ContactChangeType.ChangeTrackingLost.

public : void Reset()
public void Reset()
Public Function Reset() As void
contactChangeTracker.reset();
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
contactsSystem