System.Threading.ThreadPool.BindHandle Method

Binds an operating system handle to the System.Threading.ThreadPool.

Syntax

public static bool BindHandle (System.Runtime.InteropServices.SafeHandle osHandle)

Parameters

osHandle
A System.Runtime.InteropServices.SafeHandle that holds the operating system handle. The handle must have been opened for overlapped I/O on the unmanaged side.

Returns

true if the handle is bound; otherwise, false.

Remarks

The osHandle parameter should be a Microsoft.Win32.SafeHandles.SafeFileHandle, which derives from the abstract System.Runtime.InteropServices.SafeHandle class.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0