UserDataTaskDataProviderConnection Class

Definition

Represents a connection to a data provider client.

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

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

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

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

CompleteTaskRequested

Raised when the client app attempts to mark a task as completed.

CreateOrUpdateTaskRequested

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

DeleteTaskRequested

Raised when the client app attempts to delete a task.

SkipOccurrenceRequested

Raised when the client app attempts to skip the current instance of a reoccurring task and move to the next instance.

SyncRequested

Raised when the client app attempts to sync all calendar appointments with the server.

Applies to