ToastNotificationManagerForUser.GetHistoryForToastCollectionIdAsync 方法

定义

开始检索指定通知组的通知历史记录。

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

参数

collectionId
String

Platform::String

winrt::hstring

要检索其历史记录的通知组的 ID。

返回

表示异步操作的 对象。

属性

Windows 要求

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

适用于