Overlapped Class

 

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

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

System.Object
  System.Threading.Overlapped

[ComVisibleAttribute(true)]
public class Overlapped

NameDescription
System_CAPS_pubmethodOverlapped()

Initializes a new, empty instance of the Overlapped class.

System_CAPS_pubmethodOverlapped(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.

System_CAPS_pubmethodOverlapped(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.

NameDescription
System_CAPS_pubpropertyAsyncResult

Gets or sets the object that provides status information on the I/O operation.

System_CAPS_pubpropertyEventHandle

Obsolete.Gets or sets the 32-bit integer handle to a synchronization event that is signaled when the I/O operation is complete.

System_CAPS_pubpropertyEventHandleIntPtr

Gets or sets the handle to the synchronization event that is signaled when the I/O operation is complete.

System_CAPS_pubpropertyOffsetHigh

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.

System_CAPS_pubpropertyOffsetLow

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.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticFree(NativeOverlapped*)

Frees the unmanaged memory associated with a native overlapped structure allocated by the Pack method.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodPack(IOCompletionCallback)

Obsolete.Packs the current instance into a NativeOverlapped structure, specifying the delegate to be invoked when the asynchronous I/O operation is complete.

System_CAPS_pubmethodPack(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.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticUnpack(NativeOverlapped*)

Unpacks the specified unmanaged NativeOverlapped structure into a managed Overlapped object.

System_CAPS_pubmethodUnsafePack(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.

System_CAPS_pubmethodUnsafePack(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.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: