DispatcherQueuePriority Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the priority levels that can be given to work assigned to a DispatcherQueue.
public enum class DispatcherQueuePriority
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.LiftedContract, 65536)]
enum class DispatcherQueuePriority
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
enum class DispatcherQueuePriority
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.LiftedContract), 65536)]
public enum DispatcherQueuePriority
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
public enum DispatcherQueuePriority
var value = Microsoft.UI.Dispatching.DispatcherQueuePriority.low
Public Enum DispatcherQueuePriority
- Inheritance
-
DispatcherQueuePriority
- Attributes
Fields
Name | Value | Description |
---|---|---|
Low | -10 | Low priority work will be scheduled when there isn't any other work to process. Work at Low priority can be preempted by new incoming High and Normal priority tasks. |
Normal | 0 | Work will be dispatched once all High priority tasks are dispatched. If a new High priority work is scheduled, all new High priority tasks are processed before resuming Normal tasks. This is the default priority. |
High | 10 | Work scheduled at High priority will be dispatched first, along with other High priority System tasks, before processing Normal or Low priority work. |