Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ThreadPool::BindHandle Method (SafeHandle^)

 

Binds an operating system handle to the ThreadPool.

Namespace:   System.Threading
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.

Return Value

Type: System::Boolean

true if the handle is bound; otherwise, false.

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
Return to top
Show:
© 2017 Microsoft