Share via


ContactDataProviderConnection Class

Definition

Represents a connection to a data provider client.

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

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)
App 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.

Version history

Windows version SDK version Value added
1709 16299 CreateOrUpdateContactRequested
1709 16299 DeleteContactRequested

Methods

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

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

DeleteContactRequested

Raised when the client app attempts to delete a contact.

ServerSearchReadBatchRequested

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

SyncRequested

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

Applies to