BackgroundAccessRequestKind BackgroundAccessRequestKind BackgroundAccessRequestKind BackgroundAccessRequestKind BackgroundAccessRequestKind Enum

Definition

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

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

Windows 10 requirements

Device family
Windows 10, version 1803 (introduced v10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v6)

Fields

AllowedSubjectToSystemPolicy AllowedSubjectToSystemPolicy AllowedSubjectToSystemPolicy AllowedSubjectToSystemPolicy 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 AlwaysAllowed AlwaysAllowed AlwaysAllowed AlwaysAllowed 0

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