ThreadPoolBoundHandle.BindHandle(SafeHandle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a ThreadPoolBoundHandle for the specified handle, which is bound to the system thread pool.
public:
static System::Threading::ThreadPoolBoundHandle ^ BindHandle(System::Runtime::InteropServices::SafeHandle ^ handle);
public static System.Threading.ThreadPoolBoundHandle BindHandle (System.Runtime.InteropServices.SafeHandle handle);
[System.Security.SecurityCritical]
public static System.Threading.ThreadPoolBoundHandle BindHandle (System.Runtime.InteropServices.SafeHandle handle);
static member BindHandle : System.Runtime.InteropServices.SafeHandle -> System.Threading.ThreadPoolBoundHandle
[<System.Security.SecurityCritical>]
static member BindHandle : System.Runtime.InteropServices.SafeHandle -> System.Threading.ThreadPoolBoundHandle
Public Shared Function BindHandle (handle As SafeHandle) As ThreadPoolBoundHandle
Parameters
- handle
- SafeHandle
An object that holds the operating system handle. The handle must have been opened for overlapped I/O in unmanaged code.
Returns
A ThreadPoolBoundHandle for handle
, which is bound to the system thread pool.
- Attributes
Exceptions
handle
is null
.
handle
has been disposed.
-or-
handle
does not refer to a valid I/O handle.
-or-
handle
refers to a handle that has not been opened for overlapped I/O.
-or-
handle
refers to a handle that has already been bound.
Remarks
This method should be called once per handle.
The ThreadPoolBoundHandle object does not take ownership of handle
; it remains the responsibility of the caller to call Dispose.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기