BackgroundExecutionManager.RemoveAccess BackgroundExecutionManager.RemoveAccess BackgroundExecutionManager.RemoveAccess BackgroundExecutionManager.RemoveAccess BackgroundExecutionManager.RemoveAccess Method

Definition

Overloads

RemoveAccess() RemoveAccess() RemoveAccess() RemoveAccess() RemoveAccess()

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

RemoveAccess(String) RemoveAccess(String) RemoveAccess(String) RemoveAccess(String) RemoveAccess(String)

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

RemoveAccess() RemoveAccess() RemoveAccess() RemoveAccess() RemoveAccess()

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

public : static void RemoveAccess()
static void RemoveAccess() const;
public static void RemoveAccess()
Public Shared Sub RemoveAccess()
Windows.ApplicationModel.Background.BackgroundExecutionManager.removeAccess();
See also

RemoveAccess(String) RemoveAccess(String) RemoveAccess(String) RemoveAccess(String) RemoveAccess(String)

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

public : static void RemoveAccess(Platform::String applicationId)
static void RemoveAccess(winrt::hstring applicationId) const;
public static void RemoveAccess(String applicationId)
Public Shared Sub RemoveAccess(applicationId As String)
Windows.ApplicationModel.Background.BackgroundExecutionManager.removeAccess(applicationId);

Parameters

applicationId
String String String

The package-relative application identifier (PRAID) of the app to be removed from the list of apps that may run background tasks. 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.

See also