ThreadPool.BindHandle Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Tworzy powiązanie dojścia systemu operacyjnego do elementu ThreadPool.
Przeciążenia
| BindHandle(IntPtr) |
Nieaktualne.
Nieaktualne.
Tworzy powiązanie dojścia systemu operacyjnego do elementu ThreadPool. |
| BindHandle(SafeHandle) |
Tworzy powiązanie dojścia systemu operacyjnego do elementu ThreadPool. |
BindHandle(IntPtr)
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 dojścia systemu operacyjnego do elementu 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
Element IntPtr , który przechowuje uchwyt. Uchwyt musi zostać otwarty dla nakładających się operacji we/wy po stronie niezarządzanej.
Zwraca
true jeśli dojście jest powiązane; w przeciwnym razie , false.
- Atrybuty
Wyjątki
Obiekt wywołujący nie posiada wymaganych uprawnień.
Dotyczy
BindHandle(SafeHandle)
Tworzy powiązanie dojścia systemu operacyjnego do elementu 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 dojście systemu operacyjnego. Uchwyt musi zostać otwarty dla nakładających się operacji we/wy po stronie niezarządzanej.
Zwraca
true jeśli dojście jest powiązane; w przeciwnym razie , false.
- Atrybuty
Wyjątki
osHandle to null.
Uwagi
Parametr osHandle powinien być parametrem SafeFileHandle, który pochodzi z klasy abstrakcyjnej SafeHandle .