ThreadPool.BindHandle Methode

Definition

Bindet ein Betriebssystemhandle an die ThreadPool.

Überlädt

Name Beschreibung
BindHandle(IntPtr)
Veraltet.
Veraltet.

Bindet ein Betriebssystemhandle an die ThreadPool.

BindHandle(SafeHandle)

Bindet ein Betriebssystemhandle an die ThreadPool.

BindHandle(IntPtr)

Quelle:
ThreadPool.Unix.cs
Quelle:
ThreadPool.Unix.cs
Quelle:
ThreadPool.Portable.Unix.cs
Quelle:
ThreadPool.Unix.cs
Quelle:
ThreadPool.Unix.cs

Achtung

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

Achtung

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

Bindet ein Betriebssystemhandle an die ThreadPool.

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

Parameter

osHandle
IntPtr

nativeint

Ein IntPtr Ziehpunkt, der den Ziehpunkt enthält. Der Ziehpunkt muss für überlappende E/A auf der nicht verwalteten Seite geöffnet worden sein.

Gibt zurück

truewenn der Ziehpunkt gebunden ist; andernfalls . false

Attribute

Ausnahmen

Der Aufrufer verfügt nicht über die erforderliche Berechtigung.

Hinweise

Diese Methode wird nicht unterstützt, wenn der Windows-Threadpool für die Verwendung anstelle des .NET-Threadpools konfiguriert ist. Weitere Informationen finden Sie in der Konfigurationseinstellung für den Windows-Threadpool. Eine Alternative ist die ThreadPoolBoundHandle Klasse.

Gilt für:

BindHandle(SafeHandle)

Quelle:
ThreadPool.Unix.cs
Quelle:
ThreadPool.Unix.cs
Quelle:
ThreadPool.Portable.Unix.cs
Quelle:
ThreadPool.Unix.cs
Quelle:
ThreadPool.Unix.cs

Bindet ein Betriebssystemhandle an die 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

Parameter

osHandle
SafeHandle

Eine SafeHandle , die das Betriebssystemhandle enthält. Der Ziehpunkt muss für überlappende E/A auf der nicht verwalteten Seite geöffnet worden sein.

Gibt zurück

truewenn der Ziehpunkt gebunden ist; andernfalls . false

Attribute

Ausnahmen

osHandle ist null.

Hinweise

Diese Methode wird nicht unterstützt, wenn der Windows-Threadpool für die Verwendung anstelle des .NET-Threadpools konfiguriert ist. Weitere Informationen finden Sie in der Konfigurationseinstellung für den Windows-Threadpool. Eine Alternative ist die ThreadPoolBoundHandle Klasse.

Der osHandle Parameter sollte ein SafeFileHandle, der von der abstrakten SafeHandle Klasse abgeleitet ist.

Gilt für: