BackgroundExecutionManager 類別

定義

管理執行背景工作的許可權。

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
繼承
Object Platform::Object IInspectable BackgroundExecutionManager
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

版本歷程記錄

Windows 版本 SDK 版本 新增值
1803 17134 RequestAccessKindAsync

方法

GetAccessStatus()

取得應用程式的背景工作執行功能。

GetAccessStatus(String)

取得指定應用程式的背景工作執行功能。

GetAccessStatusForModernStandby()

取得值,這個值表示當裝置處於連線待命模式時,呼叫應用程式的背景工作執行功能。

GetAccessStatusForModernStandby(String)

Retreives 值,指出裝置處於連線待命模式時,指定的應用程式背景工作執行功能。

RemoveAccess()

從可執行背景工作的應用程式清單中移除呼叫的應用程式。

RemoveAccess(String)

從可執行背景工作的應用程式清單中移除特定應用程式。

RequestAccessAsync()

要求允許應用程式執行背景工作。

RequestAccessAsync(String)

以非同步方式要求允許應用程式執行背景工作。

RequestAccessKindAsync(BackgroundAccessRequestKind, String)

提示使用者是否同意允許應用程式在背景中執行指定的背景活動層級。 在 Desktop OS Edition 上,可能會提示使用者同意。

RequestAccessKindForModernStandbyAsync(BackgroundAccessRequestKind, String)

要求使用者同意,以允許應用程式在裝置處於連線待命模式時,在背景中執行指定的背景活動層級。 在 Desktop OS Edition 上,可能會提示使用者同意。

適用於

另請參閱