ContactDataProviderConnection ContactDataProviderConnection ContactDataProviderConnection ContactDataProviderConnection ContactDataProviderConnection Class

Definition

Represents a connection to a data provider client.

public : sealed class ContactDataProviderConnection : IContactDataProviderConnection, IContactDataProviderConnection2
struct winrt::Windows::ApplicationModel::Contacts::DataProvider::ContactDataProviderConnection : IContactDataProviderConnection, IContactDataProviderConnection2
public sealed class ContactDataProviderConnection : IContactDataProviderConnection, IContactDataProviderConnection2
Public NotInheritable Class ContactDataProviderConnection Implements IContactDataProviderConnection, IContactDataProviderConnection2
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

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

Remarks

Use the instance of this class provided by the Connection property of the ContactDataProviderTriggerDetails object passed to your background task on activation.

Methods

Start() Start() Start() Start() Start()

Call this method to indicate that all event handlers have been set and the data provider is ready to start handling requests.

Events

CreateOrUpdateContactRequested CreateOrUpdateContactRequested CreateOrUpdateContactRequested CreateOrUpdateContactRequested CreateOrUpdateContactRequested

Raised when the client app attempts to create or update a contact.

DeleteContactRequested DeleteContactRequested DeleteContactRequested DeleteContactRequested DeleteContactRequested

Raised when the client app attempts to delete a contact.

ServerSearchReadBatchRequested ServerSearchReadBatchRequested ServerSearchReadBatchRequested ServerSearchReadBatchRequested ServerSearchReadBatchRequested

Occurs when the contact data client has requested a batch of server-side search results.

SyncRequested SyncRequested SyncRequested SyncRequested SyncRequested

Occurs when the contact data client has requested to sync a contact list with the server..