ThreadPool.BindHandle Metoda

Definicja

Tworzy powiązanie uchwytu systemu operacyjnego z programem ThreadPool.

Przeciążenia

BindHandle(IntPtr)
Przestarzałe.
Przestarzałe.

Tworzy powiązanie uchwytu systemu operacyjnego z programem ThreadPool.

BindHandle(SafeHandle)

Tworzy powiązanie uchwytu systemu operacyjnego z programem ThreadPool.

BindHandle(IntPtr)

Źródło:
ThreadPool.Portable.Unix.cs
Źródło:
ThreadPool.Unix.cs
Źródło:
ThreadPool.Unix.cs

Przestroga

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

Przestroga

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

Tworzy powiązanie uchwytu systemu operacyjnego z programem 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

Parametry

osHandle
IntPtr

nativeint

Uchwyt IntPtr , który zawiera uchwyt. Uchwyt musi być otwarty dla nakładających się operacji we/wy po stronie niezarządzanej.

Zwraca

true jeśli uchwyt jest powiązany; w przeciwnym razie , false.

Atrybuty

Wyjątki

Obiekt wywołujący nie posiada wymaganych uprawnień.

Uwagi

Ta metoda nie jest obsługiwana, gdy pula wątków systemu Windows jest skonfigurowana do użycia zamiast puli wątków platformy .NET. Aby uzyskać więcej informacji, zobacz ustawienie konfiguracji puli wątków systemu Windows. Alternatywą jest ThreadPoolBoundHandle klasa.

Dotyczy

BindHandle(SafeHandle)

Źródło:
ThreadPool.Portable.Unix.cs
Źródło:
ThreadPool.Unix.cs
Źródło:
ThreadPool.Unix.cs

Tworzy powiązanie uchwytu systemu operacyjnego z programem 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

Parametry

osHandle
SafeHandle

Element SafeHandle , który przechowuje uchwyt systemu operacyjnego. Uchwyt musi być otwarty dla nakładających się operacji we/wy po stronie niezarządzanej.

Zwraca

true jeśli uchwyt jest powiązany; w przeciwnym razie , false.

Atrybuty

Wyjątki

osHandle to null.

Uwagi

Ta metoda nie jest obsługiwana, gdy pula wątków systemu Windows jest skonfigurowana do użycia zamiast puli wątków platformy .NET. Aby uzyskać więcej informacji, zobacz ustawienie konfiguracji puli wątków systemu Windows. Alternatywą jest ThreadPoolBoundHandle klasa.

Parametr osHandle powinien być parametrem SafeFileHandle, który pochodzi z klasy abstrakcyjnej SafeHandle .

Dotyczy