BackgroundAccessRequestKind Enum

Definition

Specifies the level of background activity that an app can request.

public enum class BackgroundAccessRequestKind
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
enum class BackgroundAccessRequestKind
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
public enum BackgroundAccessRequestKind
var value = Windows.ApplicationModel.Background.BackgroundAccessRequestKind.alwaysAllowed
Public Enum BackgroundAccessRequestKind
Inheritance
BackgroundAccessRequestKind
Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Fields

AllowedSubjectToSystemPolicy 1

Allow the app to run in the background, unless background activity has been limited by the user or by the system to improve battery life.

AlwaysAllowed 0

Allow the app run background activities, including during Battery Saver.

Applies to