ProcessThread.ThreadState 属性

定义

获取此线程的当前状态。

public:
 property System::Diagnostics::ThreadState ThreadState { System::Diagnostics::ThreadState get(); };
public System.Diagnostics.ThreadState ThreadState { get; }
member this.ThreadState : System.Diagnostics.ThreadState
Public ReadOnly Property ThreadState As ThreadState

属性值

指示线程执行情况的 ThreadState(例如运行、等待或终止)。

例外

进程在远程计算机上。

注解

WaitReason当 值为 时,ThreadStateWait属性值才有效。 因此,在获取 WaitReason 属性之前,ThreadState检查值。

适用于