BackgroundExecutionManager Class
Definition
Manage permission to run background tasks.
public ref class BackgroundExecutionManager abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Static(Windows.ApplicationModel.Background.IBackgroundExecutionManagerStatics, 65536, Windows.Foundation.UniversalApiContract)]
class BackgroundExecutionManager abstract final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Static(Windows.ApplicationModel.Background.IBackgroundExecutionManagerStatics, 65536, "Windows.Foundation.UniversalApiContract")]
class BackgroundExecutionManager abstract final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Static(Windows.ApplicationModel.Background.IBackgroundExecutionManagerStatics, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Static(Windows.ApplicationModel.Background.IBackgroundExecutionManagerStatics2, 393216, "Windows.Foundation.UniversalApiContract")]
class BackgroundExecutionManager abstract final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Static(typeof(Windows.ApplicationModel.Background.IBackgroundExecutionManagerStatics), 65536, typeof(Windows.Foundation.UniversalApiContract))]
public static class BackgroundExecutionManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Static(typeof(Windows.ApplicationModel.Background.IBackgroundExecutionManagerStatics), 65536, "Windows.Foundation.UniversalApiContract")]
public static class BackgroundExecutionManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Static(typeof(Windows.ApplicationModel.Background.IBackgroundExecutionManagerStatics), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Static(typeof(Windows.ApplicationModel.Background.IBackgroundExecutionManagerStatics2), 393216, "Windows.Foundation.UniversalApiContract")]
public static class BackgroundExecutionManager
Public Class BackgroundExecutionManager
- Inheritance
-
BackgroundExecutionManager
- Attributes
Windows 10 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. |
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. |