ThreadPool.BindHandle メソッド

定義

オペレーティング システム ハンドルを ThreadPool にバインドします。

オーバーロード

BindHandle(IntPtr)
古い.
古い.

オペレーティング システム ハンドルを ThreadPool にバインドします。

BindHandle(SafeHandle)

オペレーティング システム ハンドルを ThreadPool にバインドします。

BindHandle(IntPtr)

ソース:
ThreadPool.Portable.Unix.cs
ソース:
ThreadPool.Unix.cs
ソース:
ThreadPool.Unix.cs

注意事項

ThreadPool.BindHandle(IntPtr) has been deprecated. Please use ThreadPool.BindHandle(SafeHandle) instead.

注意事項

ThreadPool.BindHandle(IntPtr) has been deprecated. Use ThreadPool.BindHandle(SafeHandle) instead.

オペレーティング システム ハンドルを ThreadPool にバインドします。

public:
 static bool BindHandle(IntPtr osHandle);
[System.Obsolete("ThreadPool.BindHandle(IntPtr) has been deprecated.  Please use ThreadPool.BindHandle(SafeHandle) instead.", false)]
public static bool BindHandle (IntPtr osHandle);
[System.Obsolete("ThreadPool.BindHandle(IntPtr) has been deprecated. Use ThreadPool.BindHandle(SafeHandle) instead.")]
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static bool BindHandle (IntPtr osHandle);
public static bool BindHandle (IntPtr osHandle);
[<System.Obsolete("ThreadPool.BindHandle(IntPtr) has been deprecated.  Please use ThreadPool.BindHandle(SafeHandle) instead.", false)>]
static member BindHandle : nativeint -> bool
[<System.Obsolete("ThreadPool.BindHandle(IntPtr) has been deprecated. Use ThreadPool.BindHandle(SafeHandle) instead.")>]
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member BindHandle : nativeint -> bool
static member BindHandle : nativeint -> bool
Public Shared Function BindHandle (osHandle As IntPtr) As Boolean

パラメーター

osHandle
IntPtr

nativeint

ハンドルを保持する IntPtr。 ハンドルは、アンマネージ側の重複 I/O 用に開かれている必要があります。

戻り値

ハンドルがバインドされている場合は true。それ以外の場合は false

属性

例外

呼び出し元に、必要なアクセス許可がありません。

注釈

Windows スレッド プールが .NET スレッド プールの代わりに使用されるように構成されている場合、このメソッドはサポートされません。 詳細については、 Windows スレッド プールの構成設定に関するページを参照してください。 もう 1 つの方法は、 ThreadPoolBoundHandle クラスです。

適用対象

BindHandle(SafeHandle)

ソース:
ThreadPool.Portable.Unix.cs
ソース:
ThreadPool.Unix.cs
ソース:
ThreadPool.Unix.cs

オペレーティング システム ハンドルを ThreadPool にバインドします。

public:
 static bool BindHandle(System::Runtime::InteropServices::SafeHandle ^ osHandle);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static bool BindHandle (System.Runtime.InteropServices.SafeHandle osHandle);
[System.Security.SecurityCritical]
public static bool BindHandle (System.Runtime.InteropServices.SafeHandle osHandle);
public static bool BindHandle (System.Runtime.InteropServices.SafeHandle osHandle);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member BindHandle : System.Runtime.InteropServices.SafeHandle -> bool
[<System.Security.SecurityCritical>]
static member BindHandle : System.Runtime.InteropServices.SafeHandle -> bool
static member BindHandle : System.Runtime.InteropServices.SafeHandle -> bool
Public Shared Function BindHandle (osHandle As SafeHandle) As Boolean

パラメーター

osHandle
SafeHandle

オペレーティング システム ハンドルを保持する SafeHandle。 ハンドルは、アンマネージ側の重複 I/O 用に開かれている必要があります。

戻り値

ハンドルがバインドされている場合は true。それ以外の場合は false

属性

例外

osHandlenull です。

注釈

Windows スレッド プールが .NET スレッド プールの代わりに使用されるように構成されている場合、このメソッドはサポートされません。 詳細については、 Windows スレッド プールの構成設定に関するページを参照してください。 もう 1 つの方法は、 ThreadPoolBoundHandle クラスです。

パラメーターは osHandleSafeFileHandle抽象 SafeHandle クラスから派生する である必要があります。

適用対象