Udostępnij za pośrednictwem


CoreDispatcherPriority Enum

Definition

Defines the priority for window event dispatches.

public enum class CoreDispatcherPriority
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class CoreDispatcherPriority
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum CoreDispatcherPriority
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