ThreadPool::BindHandle Method (IntPtr)
.NET Framework (current version)
Note: This API is now obsolete.
Namespace:
System.Threading
Assembly: mscorlib (in mscorlib.dll)
Return to top
Binds an operating system handle to the ThreadPool.
Assembly: mscorlib (in mscorlib.dll)
public: [ObsoleteAttribute("ThreadPool.BindHandle(IntPtr) has been deprecated. Please use ThreadPool.BindHandle(SafeHandle) instead.", false)] [SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::UnmanagedCode)] static bool BindHandle( IntPtr osHandle )
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.
| 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
Available since 1.1
Show: