ThreadPool.BindHandle Metod

Definition

Binder ett operativsystemhandtag till ThreadPool.

Överlagringar

Name Description
BindHandle(IntPtr)
Föråldrad.
Föråldrad.

Binder ett operativsystemhandtag till ThreadPool.

BindHandle(SafeHandle)

Binder ett operativsystemhandtag till ThreadPool.

BindHandle(IntPtr)

Källa:
ThreadPool.Unix.cs
Källa:
ThreadPool.Unix.cs
Källa:
ThreadPool.Portable.Unix.cs
Källa:
ThreadPool.Unix.cs
Källa:
ThreadPool.Unix.cs

Varning

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

Varning

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

Binder ett operativsystemhandtag till 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

Parametrar

osHandle
IntPtr

nativeint

En IntPtr som innehåller handtaget. Handtaget måste ha öppnats för överlappande I/O på den ohanterade sidan.

Returer

trueom handtaget är bundet; annars . false

Attribut

Undantag

Anroparen har inte den behörighet som krävs.

Kommentarer

Den här metoden stöds inte när Windows trådpool är konfigurerad att användas i stället för .NET trådpool. Mer information finns i konfigurationsinställningen Windows trådpool. Ett alternativ är ThreadPoolBoundHandle klassen.

Gäller för

BindHandle(SafeHandle)

Källa:
ThreadPool.Unix.cs
Källa:
ThreadPool.Unix.cs
Källa:
ThreadPool.Portable.Unix.cs
Källa:
ThreadPool.Unix.cs
Källa:
ThreadPool.Unix.cs

Binder ett operativsystemhandtag till 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

Parametrar

osHandle
SafeHandle

En SafeHandle som innehåller operativsystemets handtag. Handtaget måste ha öppnats för överlappande I/O på den ohanterade sidan.

Returer

trueom handtaget är bundet; annars . false

Attribut

Undantag

osHandle är null.

Kommentarer

Den här metoden stöds inte när Windows trådpool är konfigurerad att användas i stället för .NET trådpool. Mer information finns i konfigurationsinställningen Windows trådpool. Ett alternativ är ThreadPoolBoundHandle klassen.

Parametern osHandle ska vara en SafeFileHandle, som härleds från den abstrakta SafeHandle klassen.

Gäller för