IOCompletionCallback 委托

定义

重要

此 API 不符合 CLS。

当 I/O 操作在线程池上完成时接收错误代码、字节数和重叠值类型。Receives the error code, number of bytes, and overlapped value type when an I/O operation completes on the thread pool.

public delegate void IOCompletionCallback(System::UInt32 errorCode, System::UInt32 numBytes, NativeOverlapped* pOVERLAP);
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public delegate void IOCompletionCallback(uint errorCode, uint numBytes, NativeOverlapped* pOVERLAP);
type IOCompletionCallback = delegate of uint32 * uint32 * nativeptr<NativeOverlapped> -> unit
Public Delegate Sub IOCompletionCallback(errorCode As UInteger, numBytes As UInteger, pOVERLAP As NativeOverlapped*)

参数

errorCode
UInt32

错误代码。The error code.

numBytes
UInt32

传输的字节数。The number of bytes that are transferred.

pOVERLAP
NativeOverlapped*

NativeOverlapped,表示指向本机重叠值类型的非托管指针。A NativeOverlapped representing an unmanaged pointer to the native overlapped value type.

继承
IOCompletionCallback
属性

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于