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; [System.Runtime.Versioning.SupportedOSPlatform("windows")] set; }
public System.Diagnostics.ThreadPriorityLevel PriorityLevel { [System.Runtime.Versioning.SupportedOSPlatform("windows")] [System.Runtime.Versioning.SupportedOSPlatform("linux")] [System.Runtime.Versioning.SupportedOSPlatform("freebsd")] get; [System.Runtime.Versioning.SupportedOSPlatform("windows")] set; }
public System.Diagnostics.ThreadPriorityLevel PriorityLevel { get; set; }
[<set: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
member this.PriorityLevel : System.Diagnostics.ThreadPriorityLevel with get, set
[<set: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
[<get: System.Runtime.Versioning.SupportedOSPlatform("windows")>]
[<get: System.Runtime.Versioning.SupportedOSPlatform("linux")>]
[<get: System.Runtime.Versioning.SupportedOSPlatform("freebsd")>]
member this.PriorityLevel : System.Diagnostics.ThreadPriorityLevel with 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.

Attributes

Exceptions

The thread priority level information could not be retrieved.

-or-

The thread priority level could not be set.

The process is on a remote computer.

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