Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ProcessThread.ThreadState Property


Gets the current state of this thread.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public ThreadState ThreadState { get; }

Property Value

Type: System.Diagnostics.ThreadState

A ThreadState that indicates the thread's execution, for example, running, waiting, or terminated.

Exception Condition

The platform is Windows 98 or Windows Millennium Edition.


The process is on a remote computer.

The WaitReason property value is valid only when the ThreadState value is Wait. Therefore, check the ThreadState value before you get the WaitReason property.

.NET Framework
Available since 1.1
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft