Dela via


ToastNotification.Priority Property

Definition

Gets or sets the priority of the toast notification.

public:
 property ToastNotificationPriority Priority { ToastNotificationPriority get(); void set(ToastNotificationPriority value); };
ToastNotificationPriority Priority();

void Priority(ToastNotificationPriority value);
public ToastNotificationPriority Priority { get; set; }
var toastNotificationPriority = toastNotification.priority;
toastNotification.priority = toastNotificationPriority;
Public Property Priority As ToastNotificationPriority

Property Value

The priority of the toast notification.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

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.

Applies to