O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Detecting Changes in Stored Contacts

Sometimes contacts may be modified outside of your app. You can use the ContactStore change tracking API to retrieve a list of changes that have occurred to contacts since a previous point in time.

To establish the current revision number of the contact store, retrieve the value of the ContactStore object’s RevisionNumber property. This is an unsigned long value that is updated whenever a contact is added or removed from the contact store, or whenever a contact is modified.

ContactStore store = await ContactStore.CreateOrOpenAsync();ulong revisionCode = store.RevisionNumber;

You retrieve the list of changes since the last revision by calling the ContactStore class’s GetChangesAsync ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required