Share via


ToastCollection(String, String, String, Uri) Constructor

Definition

Creates a new toast notification group.

public:
 ToastCollection(Platform::String ^ collectionId, Platform::String ^ displayName, Platform::String ^ launchArgs, Uri ^ iconUri);
 ToastCollection(winrt::hstring const& collectionId, winrt::hstring const& displayName, winrt::hstring const& launchArgs, Uri const& iconUri);
public ToastCollection(string collectionId, string displayName, string launchArgs, System.Uri iconUri);
function ToastCollection(collectionId, displayName, launchArgs, iconUri)
Public Sub New (collectionId As String, displayName As String, launchArgs As String, iconUri As Uri)

Parameters

collectionId
String

Platform::String

winrt::hstring

The ID of the group. You can use the ID to manipulate the group with a ToastCollectionManager

displayName
String

Platform::String

winrt::hstring

The title of group to display in the Action Center.

launchArgs
String

Platform::String

winrt::hstring

The launch arguments that are passed to the app when the user clicks the notification group title in the Action Center.

iconUri
Uri Uri

The icon to display next to the title in the Action Center.

Applies to