ThreadPool.BindHandle Method (SafeHandle)

Binds an operating system handle to the ThreadPool.

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)

public static bool BindHandle (
	SafeHandle osHandle
)
public static boolean BindHandle (
	SafeHandle osHandle
)
public static function BindHandle (
	osHandle : SafeHandle
) : boolean
Not applicable.

Parameters

osHandle

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

Return Value

true if the handle is bound; otherwise, false.

Exception typeCondition

ArgumentNullException

osHandle is a null reference (Nothing in Visual Basic).

The osHandle parameter should be a SafeFileHandle, which derives from the abstract SafeHandle class.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: