Skip to main content
BackgroundExecutionManager.GetAccessStatus() | getAccessStatus() method

Applies to Windows and Windows Phone

Gets the ability of the calling lock screen app to perform background activity and update its badge.

Syntax


var backgroundAccessStatus = Windows.ApplicationModel.Background.BackgroundExecutionManager.getAccessStatus();

public static BackgroundAccessStatus GetAccessStatus()

Public Shared Function GetAccessStatus() As BackgroundAccessStatus

public:
static BackgroundAccessStatus GetAccessStatus()

Parameters

This method has no parameters.

Return value

Type: BackgroundAccessStatus

One of the enumeration values that specify the app's capabilities on the lock screen.

Remarks

The settings that allow an app to use background activity and update its badge on the lock screen are found in the Setttings charm or the Personalization item in the Control Panel.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.Background
Windows::ApplicationModel::Background [C++]

Metadata

Windows.winmd

See also

BackgroundExecutionManager
GetAccessStatus(String)