Share via


BackgroundExecutionManager Class

Definition

Manage permission to run background tasks.

public ref class BackgroundExecutionManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class BackgroundExecutionManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public static class BackgroundExecutionManager
Public Class BackgroundExecutionManager
Inheritance
Object Platform::Object IInspectable BackgroundExecutionManager
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Version history

Windows version SDK version Value added
1803 17134 RequestAccessKindAsync

Methods

GetAccessStatus()

Gets the app's background task execution capability.

GetAccessStatus(String)

Gets the specified app's background task execution capability.

GetAccessStatusForModernStandby()

Gets a value that indicates the calling app's background task execution capability while the device is in connected standby mode.

GetAccessStatusForModernStandby(String)

Retreives a value that indicates the specified app's background task execution capability while the device is in connected standby mode.

RemoveAccess()

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

RemoveAccess(String)

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

RequestAccessAsync()

Requests that the app be permitted to run background tasks.

RequestAccessAsync(String)

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

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.

RequestAccessKindForModernStandbyAsync(BackgroundAccessRequestKind, String)

Requests user consent to allow the app to perform the specified level of background activity in the background while the device is in connected standby mode. On the Desktop OS Edition this may present a prompt to the user for their consent.

Applies to

See also