Stream.CreateWaitHandle メソッド

定義

注意事項

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

注意事項

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

注意事項

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

WaitHandle オブジェクトを割り当てます。

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

返品

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

属性

注釈

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

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

適用対象

こちらもご覧ください