ApplicationTrigger.RequestAsync ApplicationTrigger.RequestAsync ApplicationTrigger.RequestAsync ApplicationTrigger.RequestAsync ApplicationTrigger.RequestAsync Method

Definition

Overloads

RequestAsync() RequestAsync() RequestAsync() RequestAsync() RequestAsync()

This method attempts to set the trigger and start the registered background task.

RequestAsync(ValueSet) RequestAsync(ValueSet) RequestAsync(ValueSet) RequestAsync(ValueSet) RequestAsync(ValueSet)

This method attempts to set the trigger and start the registered background task with specified arguments.

RequestAsync() RequestAsync() RequestAsync() RequestAsync() RequestAsync()

This method attempts to set the trigger and start the registered background task.

public : IAsyncOperation<ApplicationTriggerResult> RequestAsync()
IAsyncOperation<ApplicationTriggerResult> RequestAsync() const;
public IAsyncOperation<ApplicationTriggerResult> RequestAsync()
Public Function RequestAsync() As IAsyncOperation(Of ApplicationTriggerResult)
Windows.ApplicationModel.Background.ApplicationTrigger.requestAsync().done( /* Your success and error handlers */ );

Returns

Returns an ApplicationTriggerResult enumeration that indicates whether the user provided the necessary consent for the operation or the system policies didn't reject the request to trigger a background task.

See also

RequestAsync(ValueSet) RequestAsync(ValueSet) RequestAsync(ValueSet) RequestAsync(ValueSet) RequestAsync(ValueSet)

This method attempts to set the trigger and start the registered background task with specified arguments.

public : IAsyncOperation<ApplicationTriggerResult> RequestAsync(ValueSet arguments)
IAsyncOperation<ApplicationTriggerResult> RequestAsync(ValueSet arguments) const;
public IAsyncOperation<ApplicationTriggerResult> RequestAsync(ValueSet arguments)
Public Function RequestAsync(arguments As ValueSet) As IAsyncOperation(Of ApplicationTriggerResult)
Windows.ApplicationModel.Background.ApplicationTrigger.requestAsync(arguments).done( /* Your success and error handlers */ );

Parameters

arguments
ValueSet ValueSet ValueSet

The serialized arguments that are passed to the background task.

Returns

Returns an ApplicationTriggerResult enumeration that indicates whether the user provided the necessary consent for the operation or the system policies didn't reject the request to trigger a background task.

See also