Share via


ContactDataProviderTriggerDetails Class

Definition

Contains details about the event that triggered your contact data provider background task.

This event is triggered when a contact data client app has instantiated the background task that runs your contact data provider. Your code should respond to this event by using the Connection property to register event handlers for contact provider request events.

public ref class ContactDataProviderTriggerDetails 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 ContactDataProviderTriggerDetails 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 ContactDataProviderTriggerDetails
Public NotInheritable Class ContactDataProviderTriggerDetails
Inheritance
Object Platform::Object IInspectable ContactDataProviderTriggerDetails
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

Your background task code is passed an instance of this class in the IBackgroundTaskInstance.TriggerDetails property.

Properties

Connection

Gets the ContactDataProviderConnection object instance used to provide contact data to a client app.

This event is triggered when a contact data client app has instantiated the background task that runs your contact data provider. Your code should respond to this event my using the connection to register event handlers for data provider request events.

Applies to