Gets or sets a value indicating the scheduling priority of a thread.
A System.Threading.ThreadPriority value.
Type Reason System.Threading.ThreadStateException The thread is in the ThreadState.Stopped state. ArgumentException The value specified for a set operation is not a valid System.Threading.ThreadPriority value.
A thread can be assigned any one of the following priority values:
- ThreadPriority.Highest
- ThreadPriority.AboveNormal
- ThreadPriority.Normal
- ThreadPriority.BelowNormal
- ThreadPriority.Lowest
The default value is ThreadPriority.Normal.
Operating systems are not required to honor the priority of a thread.
Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0