ThreadPool.BindHandle Methode

Definitie

Verbindt een besturingssysteemgreep aan de ThreadPool.

Overloads

Name Description
BindHandle(IntPtr)
Verouderd.

Verbindt een besturingssysteemgreep aan de ThreadPool.

BindHandle(SafeHandle)

Verbindt een besturingssysteemgreep aan de ThreadPool.

BindHandle(IntPtr)

Let op

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

Verbindt een besturingssysteemgreep aan de ThreadPool.

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)]
public static bool BindHandle(IntPtr osHandle);
static member BindHandle : nativeint -> bool
[<System.Obsolete("ThreadPool.BindHandle(IntPtr) has been deprecated.  Please use ThreadPool.BindHandle(SafeHandle) instead.", false)>]
static member BindHandle : nativeint -> bool
Public Shared Function BindHandle (osHandle As IntPtr) As Boolean

Parameters

osHandle
IntPtr

nativeint

Een IntPtr die de handgreep vasthoudt. De greep moet zijn geopend voor overlappende I/O aan de onbeheerde zijde.

Retouren

true als de ingang afhankelijk is; anders, false.

Kenmerken

Uitzonderingen

De beller heeft niet de vereiste machtiging.

Opmerkingen

Deze methode wordt niet ondersteund wanneer de Windows threadgroep is geconfigureerd voor gebruik in plaats van de .NET threadgroep. Zie de configuratie-instelling voor Windows threadpool voor meer informatie. Een alternatief is de ThreadPoolBoundHandle klas.

Van toepassing op

BindHandle(SafeHandle)

Verbindt een besturingssysteemgreep aan de ThreadPool.

public:
 static bool BindHandle(System::Runtime::InteropServices::SafeHandle ^ osHandle);
public static bool BindHandle(System.Runtime.InteropServices.SafeHandle osHandle);
static member BindHandle : System.Runtime.InteropServices.SafeHandle -> bool
Public Shared Function BindHandle (osHandle As SafeHandle) As Boolean

Parameters

osHandle
SafeHandle

Een SafeHandle die de ingang van het besturingssysteem bevat. De greep moet zijn geopend voor overlappende I/O aan de onbeheerde zijde.

Retouren

true als de ingang afhankelijk is; anders, false.

Uitzonderingen

osHandle is null.

Opmerkingen

Deze methode wordt niet ondersteund wanneer de Windows threadgroep is geconfigureerd voor gebruik in plaats van de .NET threadgroep. Zie de configuratie-instelling voor Windows threadpool voor meer informatie. Een alternatief is de ThreadPoolBoundHandle klas.

De osHandle parameter moet een SafeFileHandle, die is afgeleid van de abstracte SafeHandle klasse.

Van toepassing op