Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IOCompletionCallback Delegate

IOCompletionCallback Delegate

Receives the error code, number of bytes, and overlapped value type when an I/O operation completes on the thread pool.

[Visual Basic]
<CLSCompliant(False)>
<Serializable>
Public Delegate Sub IOCompletionCallback( _
   ByVal errorCode As UInt32, _
   ByVal numBytes As UInt32, _
   ByVal pOVERLAP As NativeOverlapped* _
)
[C#]
[CLSCompliant(false)]
[Serializable]
public delegate void IOCompletionCallback(
   uint errorCode,
   uint numBytes,
   NativeOverlapped* pOVERLAP
);
[C++]
[CLSCompliant(false)]
[Serializable]
public __gc __delegate void IOCompletionCallback(
   unsigned int errorCode,
   unsigned int numBytes,
   NativeOverlapped* pOVERLAP
);

[JScript] In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters [Visual Basic, C#, C++]

The declaration of your callback method must have the same parameters as the IOCompletionCallback delegate declaration.

errorCode
The error code.
numBytes
The number of bytes that are transferred.
pOVERLAP
A NativeOverlapped representing an unmanaged pointer to the native overlapped value type.

Requirements

Namespace: System.Threading

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

System.Threading Namespace

Show:
© 2015 Microsoft