ThreadPool.BindHandle Método

Definición

Enlaza un identificador del sistema operativo a ThreadPool.

Sobrecargas

BindHandle(IntPtr)
Obsoletos.
Obsoletos.

Enlaza un identificador del sistema operativo a ThreadPool.

BindHandle(SafeHandle)

Enlaza un identificador del sistema operativo a ThreadPool.

BindHandle(IntPtr)

Source:
ThreadPool.Portable.Unix.cs
Source:
ThreadPool.Unix.cs
Source:
ThreadPool.Unix.cs

Precaución

ThreadPool.BindHandle(IntPtr) has been deprecated. Please use ThreadPool.BindHandle(SafeHandle) instead.

Precaución

ThreadPool.BindHandle(IntPtr) has been deprecated. Use ThreadPool.BindHandle(SafeHandle) instead.

Enlaza un identificador del sistema operativo a ThreadPool.

public:
 static bool BindHandle(IntPtr osHandle);
[System.Obsolete("ThreadPool.BindHandle(IntPtr) has been deprecated.  Please use ThreadPool.BindHandle(SafeHandle) instead.", false)]
public static bool BindHandle (IntPtr osHandle);
[System.Obsolete("ThreadPool.BindHandle(IntPtr) has been deprecated. Use ThreadPool.BindHandle(SafeHandle) instead.")]
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static bool BindHandle (IntPtr osHandle);
public static bool BindHandle (IntPtr osHandle);
[<System.Obsolete("ThreadPool.BindHandle(IntPtr) has been deprecated.  Please use ThreadPool.BindHandle(SafeHandle) instead.", false)>]
static member BindHandle : nativeint -> bool
[<System.Obsolete("ThreadPool.BindHandle(IntPtr) has been deprecated. Use ThreadPool.BindHandle(SafeHandle) instead.")>]
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member BindHandle : nativeint -> bool
static member BindHandle : nativeint -> bool
Public Shared Function BindHandle (osHandle As IntPtr) As Boolean

Parámetros

osHandle
IntPtr

nativeint

IntPtr que contiene el controlador. El identificador debe haberse abierto para la E/S superpuesta en la parte no administrada.

Devoluciones

Es true si el identificador está enlazado; en caso contrario, es false.

Atributos

Excepciones

El llamador no dispone del permiso requerido.

Comentarios

Este método no se admite cuando el grupo de subprocesos de Windows está configurado para usarse en lugar del grupo de subprocesos de .NET. Para obtener más información, consulte la configuración del grupo de subprocesos de Windows. Una alternativa es la ThreadPoolBoundHandle clase .

Se aplica a

BindHandle(SafeHandle)

Source:
ThreadPool.Portable.Unix.cs
Source:
ThreadPool.Unix.cs
Source:
ThreadPool.Unix.cs

Enlaza un identificador del sistema operativo a ThreadPool.

public:
 static bool BindHandle(System::Runtime::InteropServices::SafeHandle ^ osHandle);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static bool BindHandle (System.Runtime.InteropServices.SafeHandle osHandle);
[System.Security.SecurityCritical]
public static bool BindHandle (System.Runtime.InteropServices.SafeHandle osHandle);
public static bool BindHandle (System.Runtime.InteropServices.SafeHandle osHandle);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member BindHandle : System.Runtime.InteropServices.SafeHandle -> bool
[<System.Security.SecurityCritical>]
static member BindHandle : System.Runtime.InteropServices.SafeHandle -> bool
static member BindHandle : System.Runtime.InteropServices.SafeHandle -> bool
Public Shared Function BindHandle (osHandle As SafeHandle) As Boolean

Parámetros

osHandle
SafeHandle

Propiedad SafeHandle que contiene el identificador del sistema operativo. El identificador debe haberse abierto para la E/S superpuesta en la parte no administrada.

Devoluciones

Es true si el identificador está enlazado; en caso contrario, es false.

Atributos

Excepciones

osHandle es null.

Comentarios

Este método no se admite cuando el grupo de subprocesos de Windows está configurado para usarse en lugar del grupo de subprocesos de .NET. Para obtener más información, consulte la configuración del grupo de subprocesos de Windows. Una alternativa es la ThreadPoolBoundHandle clase .

El osHandle parámetro debe ser , SafeFileHandleque deriva de la clase abstracta SafeHandle .

Se aplica a