Export (0) Print
Expand All

Overlapped Constructor (Int32, Int32, IntPtr, IAsyncResult)

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)

new : 
        offsetLo:int * 
        offsetHi:int * 
        hEvent:IntPtr * 
        ar:IAsyncResult -> Overlapped

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.IntPtr

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.

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.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft