This topic has not yet been rated - Rate this topic

Overlapped Class

Provides a managed representation of a Win32 OVERLAPPED structure, including methods to transfer information from an Overlapped instance to a NativeOverlapped structure.

System.Object
  System.Threading.Overlapped

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)
[ComVisibleAttribute(true)]
public class Overlapped

The Overlapped type exposes the following members.

  Name Description
Public method Overlapped() Initializes a new, empty instance of the Overlapped class.
Public method Overlapped(Int32, Int32, Int32, IAsyncResult) 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.
Public method Overlapped(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.
Top
  Name Description
Public property AsyncResult Gets or sets the object that provides status information on the I/O operation.
Public property EventHandle Obsolete. Gets or sets the 32-bit integer handle to a synchronization event that is signaled when the I/O operation is complete.
Public property EventHandleIntPtr Gets or sets the handle to the synchronization event that is signaled when the I/O operation is complete.
Public property OffsetHigh Gets or sets the high-order word of the file position at which to start the transfer. The file position is a byte offset from the start of the file.
Public property OffsetLow Gets or sets the low-order word of the file position at which to start the transfer. The file position is a byte offset from the start of the file.
Top
  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member Free Frees the unmanaged memory associated with a native overlapped structure allocated by the Pack method.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Pack(IOCompletionCallback) Obsolete. Packs the current instance into a NativeOverlapped structure, specifying the delegate to be invoked when the asynchronous I/O operation is complete.
Public method Pack(IOCompletionCallback, Object) Packs the current instance into a NativeOverlapped structure, specifying a delegate that is invoked when the asynchronous I/O operation is complete and a managed object that serves as a buffer.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Static member Unpack Unpacks the specified unmanaged NativeOverlapped structure into a managed Overlapped object.
Public method UnsafePack(IOCompletionCallback) Obsolete. Packs the current instance into a NativeOverlapped structure specifying the delegate to invoke when the asynchronous I/O operation is complete. Does not propagate the calling stack.
Public method UnsafePack(IOCompletionCallback, Object) Packs the current instance into a NativeOverlapped structure, specifying the delegate to invoke when the asynchronous I/O operation is complete and the managed object that serves as a buffer. Does not propagate the calling stack.
Top

The Pack and UnsafePack methods transfer information from an Overlapped object to a NativeOverlapped structure that can be passed to Win32 API functions for asynchronous file I/O. The Unpack method transfers information from a NativeOverlapped structure to an instance of the Overlapped class.

Changes to the properties of an Overlapped object affect its associated NativeOverlapped structure, and vice versa.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ