ProcessThread.ThreadState ProcessThread.ThreadState ProcessThread.ThreadState ProcessThread.ThreadState Property

Definição

Obtém o estado atual deste thread.Gets the current state of this thread.

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

Valor da propriedade

Um ThreadState que indica a execução do thread, por exemplo, em execução, aguardando ou encerrado.A ThreadState that indicates the thread's execution, for example, running, waiting, or terminated.

Exceções

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

Comentários

O WaitReason valor da propriedade é válido somente quando ThreadState o valor Waité.The WaitReason property value is valid only when the ThreadState value 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