Thread.ThreadState Property

July 28, 2014

Gets a value that contains the states of the current thread.

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

public ThreadState ThreadState { get; }

Property Value

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

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

Important noteImportant Note:

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft