Delen via


ContactChangeTracker Class

Definition

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

public ref class ContactChangeTracker sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ContactChangeTracker final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ContactChangeTracker
Public NotInheritable Class ContactChangeTracker
Inheritance
Object Platform::Object IInspectable ContactChangeTracker
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
contactsSystem

Remarks

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

Version history

Windows version SDK version Value added
1709 16299 IsTracking

Properties

IsTracking

Gets a Boolean value that indicates whether change tracking is active.

Methods

Enable()

Call this method to enable change tracking.

GetChangeReader()

Gets a ContactChangeReader that can be used to process changes.

Reset()

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

Applies to