Stream.CreateWaitHandle Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Attention
CreateWaitHandle will be removed eventually. Please use "new ManualResetEvent(false)" instead.
Attention
Stream.CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor instead.
Attention
CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor instead.
Alloue un objet WaitHandle.
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 ();
[System.Obsolete("Stream.CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor instead.")]
protected virtual System.Threading.WaitHandle CreateWaitHandle ();
[System.Obsolete("CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor 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
[<System.Obsolete("Stream.CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor instead.")>]
abstract member CreateWaitHandle : unit -> System.Threading.WaitHandle
override this.CreateWaitHandle : unit -> System.Threading.WaitHandle
[<System.Obsolete("CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor 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
Retours
Référence à l'objet WaitHandle
alloué.
- Attributs
Remarques
Lorsqu’elle est appelée pour la première fois, la méthode actuelle crée un WaitHandle
objet et le retourne. Lors des appels suivants, CreateWaitHandle
retourne une référence à un nouveau handle d’attente.
Utilisez cette méthode si vous implémentez les méthodes asynchrones et que vous avez besoin d’un moyen de bloquer dans EndRead ou EndWrite jusqu’à ce que l’opération asynchrone soit terminée.