Stream.CreateWaitHandle メソッド

定義

注意事項

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

注意事項

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

注意事項

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

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

戻り値

割り当てられた WaitHandle への参照。

属性

注釈

初めて呼び出されると、現在のメソッドによって オブジェクトが WaitHandle 作成され、返されます。 以降の呼び出しでは、 CreateWaitHandle は新しい待機ハンドルへの参照を返します。

非同期メソッドを実装し、非同期操作が完了するまで または EndWriteEndReadブロックする方法が必要な場合は、このメソッドを使用します。

適用対象

こちらもご覧ください