Gets the state of this thread.
[Visual Basic] Public ReadOnly Property ThreadState As ThreadState [C#] public ThreadState ThreadState {get;} [C++] public: __property ThreadState get_ThreadState(); [JScript] public function get ThreadState() : ThreadState;
One of the ThreadState values. The initial value is Unstarted.
ThreadState is more general than IsAlive or IsBackground.