BackgroundExecutionManager.GetAccessStatusForModernStandby Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
GetAccessStatusForModernStandby()
Gets a value that indicates the calling app's background task execution capability while the device is in connected standby mode.
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
Returns
A value from the BackgroundAccessStatus enumeration specifying the app's background task execution capability.
- Attributes
Windows requirements
Device family |
Windows 11 (introduced in 10.0.22000.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v14.0)
|
Applies to
GetAccessStatusForModernStandby(String)
Retreives a value that indicates the specified app's background task execution capability while the device is in connected standby mode.
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
Parameters
- applicationId
-
String
Platform::String
winrt::hstring
The package-relative application identifier specifying the app for which background access status is queried.
Returns
A value from the BackgroundAccessStatus enumeration specifying the app's background task execution capability.
- Attributes
Windows requirements
Device family |
Windows 11 (introduced in 10.0.22000.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v14.0)
|