AppNotification Class

Definition

Represents an app notification.

public ref class AppNotification sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Windows.AppNotifications.IAppNotificationFactory, 65536, "Microsoft.Windows.AppNotifications.AppNotificationsContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.AppNotifications.AppNotificationsContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AppNotification final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Windows.AppNotifications.IAppNotificationFactory), 65536, "Microsoft.Windows.AppNotifications.AppNotificationsContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.AppNotifications.AppNotificationsContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AppNotification
function AppNotification(payload)
Public NotInheritable Class AppNotification
Inheritance
Object Platform::Object IInspectable AppNotification
Attributes

Remarks

A screen capture showing a toast notification above the task bar. The notification is a reminder for an event. The app name, event name, event time, and event location are shown. A selection input displays the currently selected value, Going. There are two buttons labeled RSVP and Dismiss

For how-to guidance for implementing app notifications, see Quickstart: App notifications in the Windows App SDK.

Constructors

AppNotification(String)

Creates a new instance of the AppNotification class.

Properties

Expiration

Gets or sets the time after which the app notification should not be displayed.

ExpiresOnReboot

Gets a value specifying whether the app notification will remain in the Notification Center (called Action Center in Windows 10) after a reboot.

Group

Gets or sets the unique identifier for an app notification group.

Id

Gets a unique, platform-generated identifier for the app notification.

Payload

Gets the notification's XML payload.

Priority

Gets or sets the priority for the app notification.

Progress

Gets or sets information about the progress of the app notification.

SuppressDisplay

Gets or sets a value that specifies whether the app notification's pop-up UI is displayed on the user's screen.

Tag

Gets or sets a unique identifier that can be used to identify a set of app notifications across groups.

Applies to