Stream.CreateWaitHandle Metodo
Definizione
Attenzione
CreateWaitHandle will be removed eventually. Please use
Alloca un oggetto WaitHandle.Allocates a WaitHandle object.
protected:
virtual System::Threading::WaitHandle ^ CreateWaitHandle();
[System.Obsolete("CreateWaitHandle will be removed eventually. Please use "new ManualResetEvent(false)" instead.")]
protected virtual System.Threading.WaitHandle CreateWaitHandle ();
protected virtual System.Threading.WaitHandle CreateWaitHandle ();
[<System.Obsolete("CreateWaitHandle will be removed eventually. Please use "new ManualResetEvent(false)" instead.")>]
abstract member CreateWaitHandle : unit -> System.Threading.WaitHandle
override this.CreateWaitHandle : unit -> System.Threading.WaitHandle
abstract member CreateWaitHandle : unit -> System.Threading.WaitHandle
override this.CreateWaitHandle : unit -> System.Threading.WaitHandle
Protected Overridable Function CreateWaitHandle () As WaitHandle
Restituisce
Riferimento all'oggetto WaitHandle
allocato.A reference to the allocated WaitHandle
.
- Attributi
Commenti
Quando viene chiamato per la prima volta, il metodo corrente crea un WaitHandle
oggetto e lo restituisce.When called for the first time, the current method creates a WaitHandle
object and returns it. Nelle chiamate successive, CreateWaitHandle
restituisce un riferimento a un nuovo handle di attesa.On subsequent calls, CreateWaitHandle
returns a reference to a new wait handle.
Utilizzare questo metodo se si implementano i metodi asincroni e si richiede un modo per bloccare in EndRead o EndWrite fino al completamento dell'operazione asincrona.Use this method if you implement the asynchronous methods and require a way of blocking in EndRead or EndWrite until the asynchronous operation is complete.