ContactList.RegisterSyncManagerAsync ContactList.RegisterSyncManagerAsync ContactList.RegisterSyncManagerAsync ContactList.RegisterSyncManagerAsync ContactList.RegisterSyncManagerAsync Method

Definition

Adds a SyncManager to the ContactList.

public : IAsyncAction RegisterSyncManagerAsync()
IAsyncAction RegisterSyncManagerAsync() const;
public IAsyncAction RegisterSyncManagerAsync()
Public Function RegisterSyncManagerAsync() As IAsyncAction
Windows.ApplicationModel.Contacts.ContactList.registerSyncManagerAsync().done( /* Your success and error handlers */ );

Returns

An asynchronous registration operation that you can await.

Additional features and requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)
Capabilities
contactsSystem

Remarks

The SyncManager provides an entry point for other apps to call ContactList.SyncManager.SyncAsync. Calling ContactList.SyncManager.SyncAsync will launch the provider app as a background task and fire a IContactDataProviderConnection.SyncRequested event. An app should only call this method if they are set up as contact provider.