BackgroundTaskRegistration.GetTaskGroup(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the task group object that is associated with the group identifier.
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
Parameters
- groupId
-
String
Platform::String
winrt::hstring
The group identifier.
Returns
The task group object that is associated with the group identifier.
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
Remarks
If no group with the specified ID is found, null
is returned.
To get all of the tasks associated with the group, call BackgroundTaskRegistrationGroup.AllTasks()