共用方式為


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只有在值為 Wait時,ThreadState屬性值才有效。 因此,請先檢查值, ThreadState 再取得 WaitReason 屬性。

適用於