Share via


BackgroundExecutionManager.GetAccessStatus Method

Definition

Overloads

GetAccessStatus()

Gets the app's background task execution capability.

GetAccessStatus(String)

Gets the specified app's background task execution capability.

GetAccessStatus()

Gets the app's background task execution capability.

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

Returns

An enumeration value that specifies the app's background capabilities.

Attributes

See also

Applies to

GetAccessStatus(String)

Gets the specified app's background task execution capability.

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

Parameters

applicationId
String

Platform::String

winrt::hstring

The package-relative application identifier (PRAID) of the app whose capabilities are being retrieved. The specified app must be in the same package as the calling app. For more info on the PRAID, see the Id attribute of the Application element.

If you are hosting background task(s) in an out-of-process COM server, separate from your main application, then pass as the argument for applicationId the PRAID of the application that defines the windows.backgroundTask extension in its own package manifest.

Returns

An enumeration value that specifies the app's background capabilities.

Attributes

See also

Applies to