This documentation is archived and is not being maintained.
IOCompletionCallback Delegate
.NET Framework 1.1
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
Show: