BackgroundTaskRegistration.GetTaskGroup(String) 方法

定義

取得與群組識別碼相關聯的工作組物件。

public:
 static BackgroundTaskRegistrationGroup ^ GetTaskGroup(Platform::String ^ groupId);
 static BackgroundTaskRegistrationGroup GetTaskGroup(winrt::hstring const& groupId);
public static BackgroundTaskRegistrationGroup GetTaskGroup(string groupId);
function getTaskGroup(groupId)
Public Shared Function GetTaskGroup (groupId As String) As BackgroundTaskRegistrationGroup

參數

groupId
String

Platform::String

winrt::hstring

群組識別碼。

傳回

與群組識別碼相關聯的工作組物件。

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

如果找不到具有指定識別碼的群組, null 則會傳回 。
若要取得與群組相關聯的所有工作,請呼叫 BackgroundTaskRegistrationGroup.AllTasks ()

適用於