RemoveAccess | removeAccess methods

BackgroundExecutionManager.RemoveAccess | removeAccess methods

Removes the app from the list of apps that may run background tasks.

Overload list

MethodDescription
RemoveAccess() Removes the calling app from the list of apps that may run background tasks.
RemoveAccess(String) Removes a specific app from the list of apps that may run background tasks.

Examples

The following example code demonstrates the use of this method.


var Background = Windows.ApplicationModel.Background;
Background.BackgroundExecutionManager.removeAccess();

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

 

 

Show:
© 2016 Microsoft