ApplicationTriggerResult ApplicationTriggerResult ApplicationTriggerResult ApplicationTriggerResult ApplicationTriggerResult Enum

Definition

The result of the request to trigger a background task. The RequestAsync method returns a value of this enumeration type.

public : enum class ApplicationTriggerResult
enum class winrt::Windows::ApplicationModel::Background::ApplicationTriggerResult : int32_t
public enum ApplicationTriggerResult
Public Enum ApplicationTriggerResult
var value = Windows.ApplicationModel.Background.ApplicationTriggerResult.allowed;
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

Allowed Allowed Allowed Allowed Allowed 0

The trigger has been set. The task will run, unless an exception is thrown in the background infrastructure.

CurrentlyRunning CurrentlyRunning CurrentlyRunning CurrentlyRunning CurrentlyRunning 1

The system denied triggering the background task because it is currently running.

DisabledByPolicy DisabledByPolicy DisabledByPolicy DisabledByPolicy DisabledByPolicy 2

A system policy doesn't allow this background task to be triggered.

UnknownError UnknownError UnknownError UnknownError UnknownError 3

The background task cannot be triggered because of an unknown issue.