ThreadPoolBoundHandle.BindHandle(SafeHandle) 메서드

정의

시스템 스레드 풀에 바인딩된, 지정한 핸들에 대해 ThreadPoolBoundHandle을 반환합니다.

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

매개 변수

handle
SafeHandle

운영 체제 핸들을 보유하는 개체입니다. 핸들은 비관리 코드의 겹쳐진 I/O에 대해 열려있어야 합니다.

반환

ThreadPoolBoundHandle

시스템 스레드 풀에 바인딩된, handle에 대한 ThreadPoolBoundHandle입니다.

특성

예외

handle이(가) null인 경우

handle이 삭제되었습니다.

또는 handle은 유효한 I/O 핸들을 참조하지 않습니다.

또는 handle은 겹쳐진 I/O에 대해 열려 있지 않은 핸들을 참조합니다.

또는 handle은 이미 바인딩된 핸들을 참조합니다.

설명

이 메서드는 핸들당 한 번 호출해야 합니다.

개체는 ThreadPoolBoundHandle 소유권 handle을 보유하지 않습니다. 호출자가 호출 Dispose하는 책임은 그대로 유지됩니다.

적용 대상