BackgroundExecutionManager BackgroundExecutionManager BackgroundExecutionManager BackgroundExecutionManager BackgroundExecutionManager Class

Definition

Manage permission to run background tasks.

public : static class BackgroundExecutionManager
static struct winrt::Windows::ApplicationModel::Background::BackgroundExecutionManager
public static class BackgroundExecutionManager
Public Shared Class BackgroundExecutionManager
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

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

Methods

GetAccessStatus() GetAccessStatus() GetAccessStatus() GetAccessStatus() GetAccessStatus()

Gets the app's background task execution capability.

GetAccessStatus(String) GetAccessStatus(String) GetAccessStatus(String) GetAccessStatus(String) GetAccessStatus(String)

Gets the specified app's background task execution capability.

RemoveAccess() RemoveAccess() RemoveAccess() RemoveAccess() RemoveAccess()

Removes the calling app from the list of apps that may run background tasks.

RemoveAccess(String) RemoveAccess(String) RemoveAccess(String) RemoveAccess(String) RemoveAccess(String)

Removes a specific app from the list of apps that may run background tasks.

RequestAccessAsync() RequestAccessAsync() RequestAccessAsync() RequestAccessAsync() RequestAccessAsync()

Requests that the app be permitted to run background tasks.

RequestAccessAsync(String) RequestAccessAsync(String) RequestAccessAsync(String) RequestAccessAsync(String) RequestAccessAsync(String)

Asynchronously requests that the app be permitted to run background tasks.

RequestAccessKindAsync(BackgroundAccessRequestKind, String) RequestAccessKindAsync(BackgroundAccessRequestKind, String) RequestAccessKindAsync(BackgroundAccessRequestKind, String) RequestAccessKindAsync(BackgroundAccessRequestKind, String) RequestAccessKindAsync(BackgroundAccessRequestKind, String)

Prompts the user whether they consent to allow the app to perform the specified level of background activity in the background. On the Desktop OS Edition this may present a prompt to the user for their consent.

See also