BackgroundExecutionManager.GetAccessStatusForModernStandby 方法

定义

重载

GetAccessStatusForModernStandby()

获取一个值,该值指示设备处于连接待机模式时调用应用的后台任务执行功能。

GetAccessStatusForModernStandby(String)

重新提取一个值,该值指示设备处于连接待机模式时指定应用的后台任务执行功能。

GetAccessStatusForModernStandby()

获取一个值,该值指示设备处于连接待机模式时调用应用的后台任务执行功能。

public:
 static BackgroundAccessStatus GetAccessStatusForModernStandby();
/// [Windows.Foundation.Metadata.Overload("GetAccessStatusForModernStandby")]
 static BackgroundAccessStatus GetAccessStatusForModernStandby();
[Windows.Foundation.Metadata.Overload("GetAccessStatusForModernStandby")]
public static BackgroundAccessStatus GetAccessStatusForModernStandby();
function getAccessStatusForModernStandby()
Public Shared Function GetAccessStatusForModernStandby () As BackgroundAccessStatus

返回

BackgroundAccessStatus 枚举中的值,指定应用的后台任务执行功能。

属性

Windows 要求

设备系列
Windows 11 (在 10.0.22000.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v14.0 中引入)

适用于

GetAccessStatusForModernStandby(String)

重新提取一个值,该值指示设备处于连接待机模式时指定应用的后台任务执行功能。

public:
 static BackgroundAccessStatus GetAccessStatusForModernStandby(Platform::String ^ applicationId);
/// [Windows.Foundation.Metadata.Overload("GetAccessStatusForModernStandbyForApplication")]
 static BackgroundAccessStatus GetAccessStatusForModernStandby(winrt::hstring const& applicationId);
[Windows.Foundation.Metadata.Overload("GetAccessStatusForModernStandbyForApplication")]
public static BackgroundAccessStatus GetAccessStatusForModernStandby(string applicationId);
function getAccessStatusForModernStandby(applicationId)
Public Shared Function GetAccessStatusForModernStandby (applicationId As String) As BackgroundAccessStatus

参数

applicationId
String

Platform::String

winrt::hstring

相对于包的应用程序标识符,指定查询其后台访问状态的应用。

返回

BackgroundAccessStatus 枚举中的值,指定应用的后台任务执行功能。

属性

Windows 要求

设备系列
Windows 11 (在 10.0.22000.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v14.0 中引入)

适用于