Delen via


BackgroundTaskRegistrationGroup Constructors

Definition

Overloads

BackgroundTaskRegistrationGroup(String)

Creates a BackgroundTaskRegistrationGroup with the specified group ID.

BackgroundTaskRegistrationGroup(String, String)

Creates a BackgroundTaskRegistrationGroup with the specified group ID and

BackgroundTaskRegistrationGroup(String)

Creates a BackgroundTaskRegistrationGroup with the specified group ID.

public:
 BackgroundTaskRegistrationGroup(Platform::String ^ id);
 BackgroundTaskRegistrationGroup(winrt::hstring const& id);
public BackgroundTaskRegistrationGroup(string id);
function BackgroundTaskRegistrationGroup(id)
Public Sub New (id As String)

Parameters

id
String

Platform::String

winrt::hstring

The group ID.

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

BackgroundTaskRegistrationGroup(String, String)

Creates a BackgroundTaskRegistrationGroup with the specified group ID and

public:
 BackgroundTaskRegistrationGroup(Platform::String ^ id, Platform::String ^ name);
 BackgroundTaskRegistrationGroup(winrt::hstring const& id, winrt::hstring const& name);
public BackgroundTaskRegistrationGroup(string id, string name);
function BackgroundTaskRegistrationGroup(id, name)
Public Sub New (id As String, name As String)

Parameters

id
String

Platform::String

winrt::hstring

The group ID.

name
String

Platform::String

winrt::hstring

The friendly name for this group.

Remarks

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

The friendly name can be useful for debugging purposes if your group IDs are difficult to distinguish.

Applies to