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 で導入)

注釈

指定した ID を持つグループが見つからない場合は、 null が返されます。
グループに関連付けられているすべてのタスクを取得するには、BackgroundTaskRegistrationGroup.AllTasks() を呼び出します。

適用対象