Overlapped Constructor (Int32, Int32, Int32, IAsyncResult)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

obsoleteCodeEntityM:System.Threading.Overlapped.#ctor(System.Int32,System.Int32,System.IntPtr,System.IAsyncResult) Note: This API is now obsolete.

Initializes a new instance of the Overlapped class with the specified file position, the 32-bit integer handle to an event that is signaled when the I/O operation is complete, and an interface through which to return the results of the operation.

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

[ObsoleteAttribute("This constructor is not 64-bit compatible.  Use the constructor that takes an IntPtr for the event handle.  http://go.microsoft.com/fwlink/?linkid=14202")]
public Overlapped(
	int offsetLo,
	int offsetHi,
	int hEvent,
	IAsyncResult ar
)

Parameters

offsetLo
Type: System.Int32

The low word of the file position at which to start the transfer.

offsetHi
Type: System.Int32

The high word of the file position at which to start the transfer.

hEvent
Type: System.Int32

The handle to an event that is signaled when the I/O operation is complete.

ar
Type: System.IAsyncResult

An object that implements the IAsyncResult interface and provides status information on the I/O operation.

Use the WaitHandle.Handle property to get the handle of any managed synchronization event that derives from the WaitHandle class.

Your implementation of IAsyncResult provides status information on the I/O operation. Pass it to the constructor in the ar parameter, and retrieve it later with the AsyncResult property. If a callback method is specified for the Pack or UnsafePack method, the callback can retrieve your IAsyncResult by unpacking the NativeOverlapped structure it receives.

.NET Framework
Available since 1.1
Return to top
Show: