Share via


ThreadState Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets a value containing the states of the current thread.

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public ReadOnly Property ThreadState As ThreadState
public ThreadState ThreadState { get; }
public:
property ThreadState ThreadState {
    ThreadState get ();
}
member ThreadState : ThreadState with get
function get ThreadState () : ThreadState

Property Value

Type: System.Threading. . :: . .ThreadState
One of the ThreadState values indicating the state of the current thread. The initial value is Unstarted.

Remarks

The ThreadState property provides more specific information than the IsAlive property.

.NET Framework Security

See Also

Reference

Thread Class

System.Threading Namespace