ThreadPoolBoundHandle ThreadPoolBoundHandle ThreadPoolBoundHandle ThreadPoolBoundHandle Class

定義

表示 I/O 控制代碼,繫結至系統執行緒集區,並讓低階元件接收非同步 I/O 作業的通知。Represents an I/O handle that is bound to the system thread pool and enables low-level components to receive notifications for asynchronous I/O operations.

public ref class ThreadPoolBoundHandle sealed : IDisposable
public sealed class ThreadPoolBoundHandle : IDisposable
type ThreadPoolBoundHandle = class
    interface IDisposable
Public NotInheritable Class ThreadPoolBoundHandle
Implements IDisposable
繼承
ThreadPoolBoundHandleThreadPoolBoundHandleThreadPoolBoundHandleThreadPoolBoundHandle
實作

屬性

Handle Handle Handle Handle

取得繫結作業系統控制代碼。Gets the bound operating system handle.

方法

AllocateNativeOverlapped(IOCompletionCallback, Object, Object) AllocateNativeOverlapped(IOCompletionCallback, Object, Object) AllocateNativeOverlapped(IOCompletionCallback, Object, Object) AllocateNativeOverlapped(IOCompletionCallback, Object, Object)

傳回 NativeOverlapped 結構的 Unmanaged 指標,指定於非同步 I/O 作業完成時叫用的委派、提供內容的使用者提供物件,以及作為緩衝區的 Managed 物件。Returns an unmanaged pointer to a NativeOverlapped structure, specifying a delegate that is invoked when the asynchronous I/O operation is complete, a user-provided object that supplies context, and managed objects that serve as buffers.

AllocateNativeOverlapped(PreAllocatedOverlapped) AllocateNativeOverlapped(PreAllocatedOverlapped) AllocateNativeOverlapped(PreAllocatedOverlapped) AllocateNativeOverlapped(PreAllocatedOverlapped)

傳回 NativeOverlapped 結構的 Unmanaged 指標,此結構使用回呼狀態以及與指定 PreAllocatedOverlapped 物件建立關聯的緩衝區。Returns an unmanaged pointer to a NativeOverlapped structure using the callback state and buffers associated with the specified PreAllocatedOverlapped object.

BindHandle(SafeHandle) BindHandle(SafeHandle) BindHandle(SafeHandle) BindHandle(SafeHandle)

傳回指定控制代碼的 ThreadPoolBoundHandle,它繫結至系統執行緒集區。Returns a ThreadPoolBoundHandle for the specified handle, which is bound to the system thread pool.

Dispose() Dispose() Dispose() Dispose()

釋放 ThreadPoolBoundHandle 執行個體使用的所有 Unmanaged 資源。Releases all unmanaged resources used by the ThreadPoolBoundHandle instance.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
FreeNativeOverlapped(NativeOverlapped*) FreeNativeOverlapped(NativeOverlapped*) FreeNativeOverlapped(NativeOverlapped*) FreeNativeOverlapped(NativeOverlapped*)

釋放 AllocateNativeOverlapped 方法所配置之與 NativeOverlapped 結構建立關聯的記憶體。Frees the memory associated with a NativeOverlapped structure allocated by the AllocateNativeOverlapped method.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetNativeOverlappedState(NativeOverlapped*) GetNativeOverlappedState(NativeOverlapped*) GetNativeOverlappedState(NativeOverlapped*) GetNativeOverlappedState(NativeOverlapped*)

傳回透過呼叫 AllocateNativeOverlapped(IOCompletionCallback, Object, Object) 方法配置 NativeOverlapped 執行個體時,指定的使用者提供物件。Returns the user-provided object that was specified when the NativeOverlapped instance was allocated by calling the AllocateNativeOverlapped(IOCompletionCallback, Object, Object) method.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於