ThreadPoolBoundHandle.BindHandle(SafeHandle) Método

Definición

Devuelve ThreadPoolBoundHandle para el identificador especificado, que está enlazado al grupo de subprocesos del sistema.

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

Parámetros

handle
SafeHandle

Objeto que contiene el identificador del sistema operativo. El identificador debe haberse abierto para la E/S superpuesta en el código no administrado.

Devoluciones

ThreadPoolBoundHandle para handle, que está enlazado al grupo de subprocesos del sistema.

Atributos

Excepciones

handle es null.

Se ha eliminado handle.

o bien

handle no hace referencia a un identificador válido de E/S.

o bien

handle hace referencia a un identificador que no se ha abierto para la E/S superpuesta.

o bien

handle hace referencia a un identificador que ya se ha enlazado.

Comentarios

Se debe llamar a este método una vez por identificador.

El ThreadPoolBoundHandle objeto no toma posesión de handle; sigue siendo responsabilidad del autor de la llamada llamar Disposea .

Se aplica a