ToastNotificationPriority Enum
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.
Specifies the priority of a ToastNotification.
public enum class ToastNotificationPriority
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
enum class ToastNotificationPriority
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
public enum ToastNotificationPriority
var value = Windows.UI.Notifications.ToastNotificationPriority.default
Public Enum ToastNotificationPriority
- Inheritance
-
ToastNotificationPriority
- Attributes
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
Fields
Name | Value | Description |
---|---|---|
Default | 0 | The notification should have default behavior in terms of delivery and display priority during connected standby mode. |
High | 1 | The notification should be treated as high priority. For desktop PCs, this means during connected standby mode the incoming notification can turn on the screen for Surface-like devices if it doesn't have a closed lid detected. |
Remarks
The priority setting provides hints on how and at what urgency level a notification should be presented to the user (whether to wake up the screen, etc). Whether the notification is displayed in high priority is based on the state and power management policy of the device.