AppNotification Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Attributes
Remarks
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. |