ToastNotificationManagerForUser.GetToastNotifierForToastCollectionIdAsync 方法

定义

为指定通知组的绑定用户和应用创建新的 ToastNotification

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)

参数

collectionId
String

Platform::String

winrt::hstring

要发送的通知组的 ID。

返回

用于发送 Toast 通知的对象。

属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

适用于