Thread.IsAlive 屬性

定義

會獲得一個表示目前執行緒執行狀態的值。

public:
 property bool IsAlive { bool get(); };
public bool IsAlive { get; }
member this.IsAlive : bool
Public ReadOnly Property IsAlive As Boolean

屬性值

true如果該執行緒已經啟動且未正常終止或中止;否則,。 false

適用於