Stream.CreateWaitHandle Methode

Definition

Achtung

CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor instead.

Achtung

CreateWaitHandle will be removed eventually. Please use "new ManualResetEvent(false)" instead.

Achtung

Stream.CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor instead.

Ordnet ein WaitHandle Objekt zu.

protected:
 virtual System::Threading::WaitHandle ^ CreateWaitHandle();
[System.Obsolete("CreateWaitHandle has been deprecated. Use the ManualResetEvent(false) constructor instead.")]
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();
protected virtual System.Threading.WaitHandle CreateWaitHandle();
[<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
[<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
abstract member CreateWaitHandle : unit -> System.Threading.WaitHandle
override this.CreateWaitHandle : unit -> System.Threading.WaitHandle
Protected Overridable Function CreateWaitHandle () As WaitHandle

Gibt zurück

Ein Verweis auf die zugewiesenen WaitHandle.

Attribute

Hinweise

Wenn die aktuelle Methode zum ersten Mal aufgerufen wird, wird ein WaitHandle Objekt erstellt und zurückgegeben. Bei nachfolgenden Aufrufen CreateWaitHandle wird ein Verweis auf ein neues Wartezeithandle zurückgegeben.

Verwenden Sie diese Methode, wenn Sie die asynchronen Methoden implementieren und eine Möglichkeit zum Blockieren in EndRead oder EndWrite bis zum Abschluss des asynchronen Vorgangs erfordern.

Gilt für:

Weitere Informationen