Aracılığıyla paylaş


Stream.CreateWaitHandle Yöntem

Tanım

Dikkat

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

Dikkat

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

Dikkat

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

Bir WaitHandle nesne ayırır.

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

Döndürülenler

Ayrılan WaitHandleöğesine başvuru.

Öznitelikler

Açıklamalar

İlk kez çağrıldığında, geçerli yöntem bir WaitHandle nesnesi oluşturur ve onu döndürür. Sonraki çağrılarda, CreateWaitHandle yeni bir bekleme tutamacının başvurularını döndürür.

Zaman uyumsuz yöntemleri uyguluyorsanız ve zaman uyumsuz işlem tamamlanana kadar veya EndWrite içinde EndRead engelleme yöntemi gerektiriyorsanız bu yöntemi kullanın.

Şunlara uygulanır

Ayrıca bkz.