Export (0) Print
Expand All

Overlapped Constructor (Int32, Int32, IntPtr, IAsyncResult)

Note: This constructor is new in the .NET Framework version 2.0.

Initializes a new instance of the Overlapped class with the specified file position, the 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)

public Overlapped (
	int offsetLo,
	int offsetHi,
	IntPtr hEvent,
	IAsyncResult ar
)
public Overlapped (
	int offsetLo, 
	int offsetHi, 
	IntPtr hEvent, 
	IAsyncResult ar
)
public function Overlapped (
	offsetLo : int, 
	offsetHi : int, 
	hEvent : IntPtr, 
	ar : IAsyncResult
)

Parameters

offsetLo

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

offsetHi

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

hEvent

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

ar

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

To get the handle of a managed synchronization object that derives from the WaitHandle class, use the WaitHandle.SafeWaitHandle property to get a SafeWaitHandle object, and then call the DangerousGetHandle method.

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft