BackgroundExecutionManager.RemoveAccess 方法

定義

多載

RemoveAccess()

從可執行背景工作的應用程式清單中移除呼叫的應用程式。

RemoveAccess(String)

從可執行背景工作的應用程式清單中移除特定應用程式。

RemoveAccess()

從可執行背景工作的應用程式清單中移除呼叫的應用程式。

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 ()
屬性

另請參閱

適用於

RemoveAccess(String)

從可執行背景工作的應用程式清單中移除特定應用程式。

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)

參數

applicationId
String

Platform::String

winrt::hstring

要從可能執行背景工作的應用程式清單中移除之應用程式的套件相對應用程式識別碼 (PRAID) 。 指定的應用程式必須與呼叫的應用程式位於相同的套件中。 如需 PRAID 的詳細資訊,請參閱Application元素的Id屬性。

如果您要在跨進程 COM 伺服器中裝載背景工作 () ,請與主要應用程式分開,然後傳遞作為應用程式之 PRAID 的引數 applicationId ,該應用程式會在自己的套件資訊清單中定義 windows.backgroundTask 擴充功能。

屬性

另請參閱

適用於