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.

C#
[System.Obsolete("We recommend switching to the new ToastNotificationManagerCompat and ToastNotificationHistoryCompat.")]
public sealed 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, 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)

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

Applies to

Produit Versions (Obsolète)
Windows Community Toolkit (7.0.0)