System.Threading.Thread.ThreadState Property

Gets a value containing the states of the current thread.

Syntax

public ThreadState ThreadState { get; }

Value

A combination of one or more System.Threading.ThreadState values, which indicate the state of the current thread.

Remarks

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

Note:

Thread state is only of interest in debugging scenarios. Your code should never use thread state to synchronize the activities of threads.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0