ThreadState Property
Collapse the table of content
Expand the table of content

Thread.ThreadState Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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:
© 2017 Microsoft