CoreDispatcherPriority Enum

Definition

Defines the priority for window event dispatches.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum CoreDispatcherPriority
Inheritance
CoreDispatcherPriority
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Idle -2

Lowest priority. Use this priority for background tasks. Delegates are processed when the window's main thread is idle and there is no input pending in the queue.

Low -1

Low priority. Delegates are processed if there are no higher priority events pending in the queue.

Normal 0

Normal priority. Delegates are processed in the order they are scheduled.

High 1

High priority. Delegates are invoked immediately for all synchronous requests. Asynchronous requests are queued and processed before any other request type.

Note

Do not use this priority level in your app. It is reserved for system events. Using this priority can lead to the starvation of other messages, including system events.

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100