ProcessThread.WaitReason Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the reason that the thread is waiting.

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

public ThreadWaitReason WaitReason { get; }

Property Value

Type: System.Diagnostics.ThreadWaitReason

A ThreadWaitReason representing the reason that the thread is in the wait state.

Exception Condition

The thread is not in the wait state.


The platform is Windows 98 or Windows Millennium Edition.


The process is on a remote computer.

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

.NET Framework
Available since 1.1
Return to top