DispatcherPriority Structure
Defines the priorities with which jobs can be invoked on a Dispatcher.
Definition
Namespace: Avalonia.Threading
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public readonly struct DispatcherPriority : IEquatable<DispatcherPriority>,
IComparable<DispatcherPriority>
Public Structure DispatcherPriority
Implements IEquatable(Of DispatcherPriority), IComparable(Of DispatcherPriority)
[<SealedAttribute>]
type DispatcherPriority =
struct
inherit ValueType
interface IEquatable<DispatcherPriority>
interface IComparable<DispatcherPriority>
end
Inheritance | Object → ValueType → DispatcherPriority |
Implements | IComparable(DispatcherPriority), IEquatable(DispatcherPriority) |
Properties
Value | The integer value of the priority |
Methods
CompareTo(DispatcherPriority) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. |
Equals(DispatcherPriority) | Indicates whether the current object is equal to another object of the same type. |
Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueType.Equals(Object)) |
FromValue(Int32) | |
GetHashCode() | Returns the hash code for this instance. (Overrides ValueType.GetHashCode()) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
ToString() | (Overrides ValueType.ToString()) |
Validate(DispatcherPriority, String) |
Operators
Fields
ApplicationIdle | The job will be processed when the application is idle. |
Background | The job will be processed after other non-idle operations have completed. |
ContextIdle | The job will be processed after background operations have completed. |
Default | The lowest foreground dispatcher priority |
Inactive | A dispatcher priority for jobs that shouldn't be executed yet |
Input | The job will be processed with the same priority as input. |
Invalid | Used internally in dispatcher code |
Loaded | The job will be processed after layout and render but before input. |
MaxValue | Maximum possible priority |
Normal | The job will be processed with normal priority. |
Render | The job will be processed with the same priority as render. |
Send | The job will be processed before other asynchronous operations. |
SystemIdle | The job will be processed when the system is idle. |