ProcessThread.PriorityLevel 属性

定义

获取或设置线程的优先级别。

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

属性值

ThreadPriorityLevel 值之一,它指定限制线程优先级的范围。

属性

例外

未能检索到线程优先级别信息。

- 或 -

未能设置线程优先级别。

进程在远程计算机上。

注解

优先级不是单个值,而是一系列值。 操作系统通过使用进程的 PriorityClass 从 属性中指定的 PriorityLevel 范围中选择值来计算线程的基本优先级。

适用于

另请参阅