BackgroundTaskBuilder.TaskGroup BackgroundTaskBuilder.TaskGroup BackgroundTaskBuilder.TaskGroup BackgroundTaskBuilder.TaskGroup BackgroundTaskBuilder.TaskGroup Property

Definition

Gets and sets the group identifier.

public : BackgroundTaskRegistrationGroup TaskGroup { get; set; }
BackgroundTaskRegistrationGroup TaskGroup();

void TaskGroup(BackgroundTaskRegistrationGroup taskgroup);
public BackgroundTaskRegistrationGroup TaskGroup { get; set; }
Public ReadWrite Property TaskGroup As BackgroundTaskRegistrationGroup
var backgroundTaskRegistrationGroup = backgroundTaskBuilder.taskGroup;
backgroundTaskBuilder.taskGroup = backgroundTaskRegistrationGroup;
Property Value
Additional features and requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Examples

Background Task code sample See scenario 6 for a grouped task example.

Remarks

To reduce collisions with other group identifiers, consider including your domain name in the group identifier. For example: "com.contoso.appname.tasks". Or use the string form of a GUID.

See Also