ThreadPoolBoundHandle.BindHandle(SafeHandle) メソッド

定義

システム スレッド プールにバインドされている、指定したハンドルの 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 に対してハンドルが開かれている必要があります。

返品

システム スレッド プールにバインドされているThreadPoolBoundHandlehandle

属性

例外

handlenullです。

handle が破棄されました。

-又は-

handle は有効な I/O ハンドルを参照しません。

-又は-

handle は、重複する I/O に対して開かされていないハンドルを指します。

-又は-

handle は、既にバインドされているハンドルを指します。

注釈

このメソッドは、ハンドルごとに 1 回呼び出す必要があります。

ThreadPoolBoundHandle オブジェクトはhandleの所有権を取得しません。呼び出し元がDisposeを呼び出す必要があります。

適用対象