IOCompletionCallback Delegate
TOC
Collapse the table of content
Expand the table of content

IOCompletionCallback Delegate

 

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

This API is not CLS-compliant.

Namespace:   System.Threading
Assembly:  mscorlib (in mscorlib.dll)

[SecurityCriticalAttribute]
[CLSCompliantAttribute(false)]
[ComVisibleAttribute(true)]
public unsafe delegate void IOCompletionCallback(
	uint errorCode,
	uint numBytes,
	NativeOverlapped* pOVERLAP
)

Parameters

errorCode
Type: System.UInt32

The error code.

numBytes
Type: System.UInt32

The number of bytes that are transferred.

pOVERLAP
Type: System.Threading.NativeOverlapped*

A NativeOverlapped representing an unmanaged pointer to the native overlapped value type.

SecurityCriticalAttribute

Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft