BackgroundExecutionManager BackgroundExecutionManager BackgroundExecutionManager BackgroundExecutionManager BackgroundExecutionManager Class

Definition

Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Prerelease APIs are identified by a Prerelease label.

[Contains prerelease APIs.]
Manage permission to run background tasks.

public : static class BackgroundExecutionManager
static struct winrt::Windows::ApplicationModel::Background::BackgroundExecutionManager
public static class BackgroundExecutionManager
Public Static 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)

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)

Prerelease. 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