Share via


BackgroundExecutionManager.RemoveAccess Method

Definition

Overloads

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.

RemoveAccess()

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

public:
 static void RemoveAccess();
/// [Windows.Foundation.Metadata.Overload("RemoveAccess")]
 static void RemoveAccess();
[Windows.Foundation.Metadata.Overload("RemoveAccess")]
public static void RemoveAccess();
function removeAccess()
Public Shared Sub RemoveAccess ()
Attributes

See also

Applies to

RemoveAccess(String)

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

public:
 static void RemoveAccess(Platform::String ^ applicationId);
/// [Windows.Foundation.Metadata.Overload("RemoveAccessForApplication")]
 static void RemoveAccess(winrt::hstring const& applicationId);
[Windows.Foundation.Metadata.Overload("RemoveAccessForApplication")]
public static void RemoveAccess(string applicationId);
function removeAccess(applicationId)
Public Shared Sub RemoveAccess (applicationId As String)

Parameters

applicationId
String

Platform::String

winrt::hstring

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.

Attributes

See also

Applies to