DeviceTriggerResult DeviceTriggerResult DeviceTriggerResult DeviceTriggerResult DeviceTriggerResult Enum

Definition

Indicates whether the device background task operation was allowed or denied, and if it was denied specifies the reason.

public : enum class DeviceTriggerResult
enum class winrt::Windows::ApplicationModel::Background::DeviceTriggerResult : int32_t
public enum DeviceTriggerResult
Public Enum DeviceTriggerResult
var value = Windows.ApplicationModel.Background.DeviceTriggerResult.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 device background task was triggered.

DeniedBySystem DeniedBySystem DeniedBySystem DeniedBySystem DeniedBySystem 2

The device background task was denied due to system policy.

DeniedByUser DeniedByUser DeniedByUser DeniedByUser DeniedByUser 1

The device background task was denied by the user.

LowBattery LowBattery LowBattery LowBattery LowBattery 3

The device background task cannot run because the battery is low.