Edit

Share via


DesktopNotificationHistoryCompat Class

Definition

Caution

We recommend switching to the new ToastNotificationManagerCompat and ToastNotificationHistoryCompat.

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

[System.Obsolete("We recommend switching to the new ToastNotificationManagerCompat and ToastNotificationHistoryCompat.")]
public sealed class DesktopNotificationHistoryCompat
[<System.Obsolete("We recommend switching to the new ToastNotificationManagerCompat and ToastNotificationHistoryCompat.")>]
type DesktopNotificationHistoryCompat = class
Public NotInheritable Class DesktopNotificationHistoryCompat
Inheritance
DesktopNotificationHistoryCompat
Attributes

Methods

Clear()

Removes all notifications sent by this app from action center.

GetHistory()

Gets all notifications sent by this app that are currently still in Action Center.

Remove(String)

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

Remove(String, String)

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

RemoveGroup(String)

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

Applies to