AppNotificationPriority 枚举
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定应用通知的优先级。
public enum class AppNotificationPriority
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.AppNotifications.AppNotificationsContract, 65536)]
enum class AppNotificationPriority
C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.AppNotifications.AppNotificationsContract), 65536)]
public enum AppNotificationPriority
var value = Microsoft.Windows.AppNotifications.AppNotificationPriority.default
Public Enum AppNotificationPriority
- 继承
-
AppNotificationPriority
- 属性
名称 | 值 | 说明 |
---|---|---|
Default | 0 | 默认优先级。 |
High | 1 | 高优先级。 |
优先级值向平台提供提示,说明应如何以及以何种紧急级别向用户显示通知。 例如,优先级可能会影响系统是否唤醒睡眠设备的屏幕。
使用 Priority 属性设置 AppNotification 的优先级。
产品 | 版本 |
---|---|
Windows App SDK | 1.1, 1.2, 1.3, 1.4, 1.5, 1.6 |