ThreadPool::BindHandle Method (SafeHandle^)
.NET Framework (current version)
Binds an operating system handle to the ThreadPool.
Assembly: mscorlib (in mscorlib.dll)
public: [SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::UnmanagedCode)] static bool BindHandle( SafeHandle^ osHandle )
Parameters
- osHandle
-
Type:
System.Runtime.InteropServices::SafeHandle^
A SafeHandle that holds the operating system handle. The handle must have been opened for overlapped I/O on the unmanaged side.
| Exception | Condition |
|---|---|
| ArgumentNullException | osHandle is null. |
The osHandle parameter should be a SafeFileHandle, which derives from the abstract SafeHandle class.
SecurityPermission
for the ability to call unmanaged code. Associated enumeration: SecurityPermissionFlag::UnmanagedCode.
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Available since 2.0
Silverlight
Available since 2.0
Show: