ManualResetEvent.Set Método

Definição

Define o estado do evento a ser sinalizado, permitindo que um ou mais threads de espera prossigam.Sets the state of the event to signaled, which allows one or more waiting threads to proceed.

public:
 bool Set();
public bool Set ();
member this.Set : unit -> bool
Public Function Set () As Boolean

Retornos

Boolean

true se a operação for bem-sucedida; caso contrário, false.true if the operation succeeds; otherwise, false.

Comentários

Chamar o método Set deixa o identificador de espera em um estado sinalizado até que o Reset() método seja chamado.Calling the Set method leaves the wait handle in a signaled state until the Reset() method is called.

Aplica-se a