ThreadPoolBoundHandle.BindHandle(SafeHandle) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
システム スレッド プールにバインドされている、指定したハンドルの ThreadPoolBoundHandle を返します。
public:
static System::Threading::ThreadPoolBoundHandle ^ BindHandle(System::Runtime::InteropServices::SafeHandle ^ handle);
public static System.Threading.ThreadPoolBoundHandle BindHandle(System.Runtime.InteropServices.SafeHandle handle);
[System.Security.SecurityCritical]
public static System.Threading.ThreadPoolBoundHandle BindHandle(System.Runtime.InteropServices.SafeHandle handle);
static member BindHandle : System.Runtime.InteropServices.SafeHandle -> System.Threading.ThreadPoolBoundHandle
[<System.Security.SecurityCritical>]
static member BindHandle : System.Runtime.InteropServices.SafeHandle -> System.Threading.ThreadPoolBoundHandle
Public Shared Function BindHandle (handle As SafeHandle) As ThreadPoolBoundHandle
パラメーター
- handle
- SafeHandle
オペレーティング システム ハンドルを保持するオブジェクト。 アンマネージ コードで重複する I/O に対してハンドルが開かれている必要があります。
返品
システム スレッド プールにバインドされているThreadPoolBoundHandleのhandle。
- 属性
例外
handle は nullです。
handle が破棄されました。
-又は-
handle は有効な I/O ハンドルを参照しません。
-又は-
handle は、重複する I/O に対して開かされていないハンドルを指します。
-又は-
handle は、既にバインドされているハンドルを指します。
注釈
このメソッドは、ハンドルごとに 1 回呼び出す必要があります。
ThreadPoolBoundHandle オブジェクトはhandleの所有権を取得しません。呼び出し元がDisposeを呼び出す必要があります。