Share via


ToastNotificationHistory Class

Definition

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

public ref class ToastNotificationHistory sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class ToastNotificationHistory final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class ToastNotificationHistory final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class ToastNotificationHistory
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public sealed class ToastNotificationHistory
Public NotInheritable Class ToastNotificationHistory
Inheritance
Object Platform::Object IInspectable ToastNotificationHistory
Attributes

Windows requirements

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

Methods

Clear()

Removes all notifications sent by this app from action center.

Clear(String)

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

GetHistory()

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

GetHistory(String)

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

Remove(String, String, String)

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

Remove(String, String)

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

Remove(String)

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

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.

RemoveGroup(String)

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

Applies to