ProcessThread.PriorityLevel ProcessThread.PriorityLevel ProcessThread.PriorityLevel ProcessThread.PriorityLevel Property

Definition

Gets or sets the priority level of the thread.

public:
 property System::Diagnostics::ThreadPriorityLevel PriorityLevel { System::Diagnostics::ThreadPriorityLevel get(); void set(System::Diagnostics::ThreadPriorityLevel value); };
public System.Diagnostics.ThreadPriorityLevel PriorityLevel { get; set; }
member this.PriorityLevel : System.Diagnostics.ThreadPriorityLevel with get, set
Public Property PriorityLevel As ThreadPriorityLevel

Property Value

One of the ThreadPriorityLevel values, specifying a range that bounds the thread's priority.

Exceptions

The thread priority level information could not be retrieved.

-or-

The thread priority level could not be set.

Remarks

The priority level is not a single value, but rather a range of values. The operating system computes the thread's base priority by using the process's PriorityClass to choose a value from the range specified in the PriorityLevel property.

Applies to

See also