ProcessThread.PriorityLevel 属性

定义

获取或设置线程的优先级别。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

属性值

ThreadPriorityLevel 值之一,它指定限制线程优先级的范围。One of the ThreadPriorityLevel values, specifying a range that bounds the thread's priority.

异常

未能检索到线程优先级别信息。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.

注解

优先级别不是单个值,而是值的范围。The priority level is not a single value, but rather a range of values. 操作系统使用进程的 PriorityClassPriorityLevel 属性中指定的范围内选择一个值来计算该线程的基本优先级。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.

适用于

另请参阅