ThreadPool.BindHandle Method (IntPtr)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Note: This API is now obsolete.

Binds an operating system handle to the ThreadPool.

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

<ObsoleteAttribute("ThreadPool.BindHandle(IntPtr) has been deprecated.  Please use ThreadPool.BindHandle(SafeHandle) instead.",
	False)>
<SecurityPermissionAttribute(SecurityAction.Demand, Flags := SecurityPermissionFlag.UnmanagedCode)>
Public Shared Function BindHandle (
	osHandle As IntPtr
) As Boolean

Parameters

osHandle
Type: System.IntPtr

An IntPtr that holds the handle. The handle must have been opened for overlapped I/O on the unmanaged side.

Return Value

Type: System.Boolean

true if the handle is bound; otherwise, false.

Exception Condition
SecurityException

The caller does not have the required permission.

SecurityPermission

for the ability to call unmanaged code. Associated enumeration: SecurityPermissionFlag.UnmanagedCode.

.NET Framework
Available since 1.1
Return to top
Show: