Share via


BackgroundTaskBuilder.TaskGroup Property

Definition

Gets and sets the group identifier.

public:
 property BackgroundTaskRegistrationGroup ^ TaskGroup { BackgroundTaskRegistrationGroup ^ get(); void set(BackgroundTaskRegistrationGroup ^ value); };
BackgroundTaskRegistrationGroup TaskGroup();

void TaskGroup(BackgroundTaskRegistrationGroup value);
public BackgroundTaskRegistrationGroup TaskGroup { get; set; }
var backgroundTaskRegistrationGroup = backgroundTaskBuilder.taskGroup;
backgroundTaskBuilder.taskGroup = backgroundTaskRegistrationGroup;
Public Property TaskGroup As BackgroundTaskRegistrationGroup

Property Value

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)

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.

Applies to

See also