ToastNotificationHistory class

Applies to Windows Phone only

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

Syntax


var toastNotificationHistory = history;

Attributes

[Threading(MTA)]
[Version(0x06030000)]

Members

The ToastNotificationHistory class has these types of members:

Methods

The ToastNotificationHistory class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
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.
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.
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) Removes a group of toast notifications, identified by the specified group 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.

 

Requirements

Minimum supported client

None supported [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.UI.Notifications
Windows::UI::Notifications [C++]

Metadata

Windows.winmd

See also

Object

 

 

Show:
© 2014 Microsoft