Dela via


ToastNotificationManagerForUser.GetToastNotifierForToastCollectionIdAsync Method

Definition

Creates a new ToastNotification for the bound user and app for the specified notification group.

public:
 virtual IAsyncOperation<ToastNotifier ^> ^ GetToastNotifierForToastCollectionIdAsync(Platform::String ^ collectionId) = GetToastNotifierForToastCollectionIdAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ToastNotifier> GetToastNotifierForToastCollectionIdAsync(winrt::hstring const& collectionId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ToastNotifier> GetToastNotifierForToastCollectionIdAsync(string collectionId);
function getToastNotifierForToastCollectionIdAsync(collectionId)
Public Function GetToastNotifierForToastCollectionIdAsync (collectionId As String) As IAsyncOperation(Of ToastNotifier)

Parameters

collectionId
String

Platform::String

winrt::hstring

The ID of the notification group you want to send.

Returns

The object you will use to send the toast notifications.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to