ToastNotificationHistory ToastNotificationHistory ToastNotificationHistory ToastNotificationHistory ToastNotificationHistory Class

Definition

Manages the toast notifications for an app including the ability the clear all toast history and removing individual toasts.

public : sealed class ToastNotificationHistory
struct winrt::Windows::UI::Notifications::ToastNotificationHistory
public sealed class ToastNotificationHistory
Public NotInheritable Class ToastNotificationHistory
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

Clear() Clear() Clear() Clear() Clear()

Removes all notifications sent by this app from action center.

Clear(String) Clear(String) Clear(String) Clear(String) Clear(String)

Removes all notifications from action center that were sent by another app inside the same app package.

GetHistory() GetHistory() GetHistory() GetHistory() GetHistory()

Gets notification history, for all notifications sent by this app, from action center.

GetHistory(String) GetHistory(String) GetHistory(String) GetHistory(String) GetHistory(String)

Gets notification history, for a toast with the specified tag label, from action center.

Remove(String) Remove(String) Remove(String) Remove(String) Remove(String)

Removes an individual toast, with the specified tag label, from action center.

Remove(String, String) Remove(String, String) Remove(String, String) Remove(String, String) Remove(String, String)

Removes a toast notification from the action using the notification's tag and group labels.

Remove(String, String, String) Remove(String, String, String) Remove(String, String, String) Remove(String, String, String) Remove(String, String, String)

Removes an individual toast notification from action center, identified by the combination of tag label, group label and app ID.

RemoveGroup(String) RemoveGroup(String) RemoveGroup(String) RemoveGroup(String) RemoveGroup(String)

Removes a group of toast notifications, identified by the specified group label, from action center.

RemoveGroup(String, String) RemoveGroup(String, String) RemoveGroup(String, String) RemoveGroup(String, String) RemoveGroup(String, String)

Removes a group of toast notifications sent by the another app inside the same app package from action center using the group label.