CoreDispatcherPriority 列舉

定義

定義視窗事件分派的優先順序。

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
繼承
CoreDispatcherPriority
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

欄位

High 1

高優先順序。 所有同步要求都會立即叫用委派。 非同步要求會在任何其他要求類型之前排入佇列並處理。

注意

請勿在應用程式中使用此優先順序層級。 它會保留給系統事件。 使用此優先順序可能會導致其他訊息耗盡,包括系統事件。

Idle -2

最低優先順序。 針對背景工作使用此優先順序。 當視窗的主執行緒閒置且佇列中沒有擱置的輸入時,就會處理委派。

Low -1

低優先順序。 如果佇列中沒有擱置中的較高優先順序事件,則會處理委派。

Normal 0

一般優先順序。 委派會依照排程的順序進行處理。

適用於