ProcessThread.WaitReason ProcessThread.WaitReason ProcessThread.WaitReason ProcessThread.WaitReason Property

Definição

Obtém o motivo pelo qual o thread está aguardando.Gets the reason that the thread is waiting.

public:
 property System::Diagnostics::ThreadWaitReason WaitReason { System::Diagnostics::ThreadWaitReason get(); };
public System.Diagnostics.ThreadWaitReason WaitReason { get; }
member this.WaitReason : System.Diagnostics.ThreadWaitReason
Public ReadOnly Property WaitReason As ThreadWaitReason

Valor da propriedade

Um ThreadWaitReason que representa o motivo pelo qual o thread está no estado de espera.A ThreadWaitReason representing the reason that the thread is in the wait state.

Exceções

O thread não está no estado de espera.The thread is not in the wait state.

O processador está em um computador remoto.The process is on a remote computer.

Comentários

A WaitReason propriedade é válida somente quando o ThreadState é Wait.The WaitReason property is valid only when the ThreadState is Wait. Portanto, verifique o ThreadState valor antes de obter a WaitReason propriedade.Therefore, check the ThreadState value before you get the WaitReason property.

Aplica-se a

Veja também