Overlapped Class
Provides a managed representation of a Win32 OVERLAPPED structure, including methods to transfer information from an Overlapped instance to a NativeOverlapped structure.
Assembly: mscorlib (in mscorlib.dll)
The Overlapped type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Overlapped() | Initializes a new, empty instance of the Overlapped class. |
![]() | 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. |
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | AsyncResult | Gets or sets the object that provides status information on the I/O operation. |
![]() | EventHandle | Obsolete. Gets or sets the 32-bit integer handle to a synchronization event that is signaled when the I/O operation is complete. |
![]() | EventHandleIntPtr | Gets or sets the handle to the synchronization event that is signaled when the I/O operation is complete. |
![]() | 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. |
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() ![]() | Free | Frees the unmanaged memory associated with a native overlapped structure allocated by the Pack method. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | 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. |
![]() | 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. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | Unpack | Unpacks the specified unmanaged NativeOverlapped structure into a managed Overlapped object. |
![]() | 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. |
![]() | 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. |
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.
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.
