Delen via


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
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ApplicationTriggerResult
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ApplicationTriggerResult
var value = Windows.ApplicationModel.Background.ApplicationTriggerResult.allowed
Public Enum ApplicationTriggerResult
Inheritance
ApplicationTriggerResult
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Allowed 0

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

CurrentlyRunning 1

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

DisabledByPolicy 2

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

UnknownError 3

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

Applies to