Export (0) Print
Expand All

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.

  NameDescription
Public methodOverlapped()Initializes a new, empty instance of the Overlapped class.
Public methodOverlapped(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 methodOverlapped(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

  NameDescription
Public propertyAsyncResultGets or sets the object that provides status information on the I/O operation.
Public propertyEventHandle Obsolete. Gets or sets the 32-bit integer handle to a synchronization event that is signaled when the I/O operation is complete.
Public propertyEventHandleIntPtrGets or sets the handle to the synchronization event that is signaled when the I/O operation is complete.
Public propertyOffsetHighGets 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 propertyOffsetLowGets 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

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberFreeFrees the unmanaged memory associated with a native overlapped structure allocated by the Pack method.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodPack(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 methodPack(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 methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodStatic memberUnpackUnpacks the specified unmanaged NativeOverlapped structure into a managed Overlapped object.
Public methodUnsafePack(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 methodUnsafePack(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.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Windows Phone 8.1, Windows Phone 8, 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.

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