ערוך

שתף באמצעות


Overlapped Constructors

Definition

Initializes a new instance of the Overlapped class.

Overloads

Overlapped()

Initializes a new, empty instance of the Overlapped class.

Overlapped(Int32, Int32, Int32, IAsyncResult)
Obsolete.
Obsolete.
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.

Overlapped()

Source:
Overlapped.cs
Source:
Overlapped.cs
Source:
Overlapped.cs

Initializes a new, empty instance of the Overlapped class.

public:
 Overlapped();
public Overlapped ();
Public Sub New ()

Applies to

Overlapped(Int32, Int32, Int32, IAsyncResult)

Source:
Overlapped.cs
Source:
Overlapped.cs
Source:
Overlapped.cs

Caution

This constructor is not 64-bit compatible. Use the constructor that takes an IntPtr for the event handle. https://go.microsoft.com/fwlink/?linkid=14202

Caution

This constructor is not 64-bit compatible and has been deprecated. Use the constructor that accepts an IntPtr for the event handle instead.

Caution

This constructor is not 64-bit compatible. Use the constructor that takes an IntPtr for the event handle. http://go.microsoft.com/fwlink/?linkid=14202

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:
 Overlapped(int offsetLo, int offsetHi, int hEvent, IAsyncResult ^ ar);
[System.Obsolete("This constructor is not 64-bit compatible.  Use the constructor that takes an IntPtr for the event handle.  https://go.microsoft.com/fwlink/?linkid=14202")]
public Overlapped (int offsetLo, int offsetHi, int hEvent, IAsyncResult? ar);
[System.Obsolete("This constructor is not 64-bit compatible and has been deprecated. Use the constructor that accepts an IntPtr for the event handle instead.")]
public Overlapped (int offsetLo, int offsetHi, int hEvent, IAsyncResult? ar);
[System.Obsolete("This constructor is not 64-bit compatible.  Use the constructor that takes an IntPtr for the event handle.  http://go.microsoft.com/fwlink/?linkid=14202")]
public Overlapped (int offsetLo, int offsetHi, int hEvent, IAsyncResult ar);
public Overlapped (int offsetLo, int offsetHi, int hEvent, IAsyncResult ar);
[System.Obsolete("This constructor is not 64-bit compatible.  Use the constructor that takes an IntPtr for the event handle.  https://go.microsoft.com/fwlink/?linkid=14202")]
public Overlapped (int offsetLo, int offsetHi, int hEvent, IAsyncResult ar);
[<System.Obsolete("This constructor is not 64-bit compatible.  Use the constructor that takes an IntPtr for the event handle.  https://go.microsoft.com/fwlink/?linkid=14202")>]
new System.Threading.Overlapped : int * int * int * IAsyncResult -> System.Threading.Overlapped
[<System.Obsolete("This constructor is not 64-bit compatible and has been deprecated. Use the constructor that accepts an IntPtr for the event handle instead.")>]
new System.Threading.Overlapped : int * int * int * IAsyncResult -> System.Threading.Overlapped
[<System.Obsolete("This constructor is not 64-bit compatible.  Use the constructor that takes an IntPtr for the event handle.  http://go.microsoft.com/fwlink/?linkid=14202")>]
new System.Threading.Overlapped : int * int * int * IAsyncResult -> System.Threading.Overlapped
new System.Threading.Overlapped : int * int * int * IAsyncResult -> System.Threading.Overlapped
Public Sub New (offsetLo As Integer, offsetHi As Integer, hEvent As Integer, ar As IAsyncResult)

Parameters

offsetLo
Int32

The low word of the file position at which to start the transfer.

offsetHi
Int32

The high word of the file position at which to start the transfer.

hEvent
Int32

The handle to an event that is signaled when the I/O operation is complete.

ar
IAsyncResult

An object that implements the IAsyncResult interface and provides status information on the I/O operation.

Attributes

Remarks

Use the WaitHandle.Handle property to get the handle of any managed synchronization event that derives from the WaitHandle class.

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.

Applies to

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

Source:
Overlapped.cs
Source:
Overlapped.cs
Source:
Overlapped.cs

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.

public:
 Overlapped(int offsetLo, int offsetHi, IntPtr hEvent, IAsyncResult ^ ar);
public Overlapped (int offsetLo, int offsetHi, IntPtr hEvent, IAsyncResult? ar);
public Overlapped (int offsetLo, int offsetHi, IntPtr hEvent, IAsyncResult ar);
new System.Threading.Overlapped : int * int * nativeint * IAsyncResult -> System.Threading.Overlapped
Public Sub New (offsetLo As Integer, offsetHi As Integer, hEvent As IntPtr, ar As IAsyncResult)

Parameters

offsetLo
Int32

The low word of the file position at which to start the transfer.

offsetHi
Int32

The high word of the file position at which to start the transfer.

hEvent
IntPtr

nativeint

The handle to an event that is signaled when the I/O operation is complete.

ar
IAsyncResult

An object that implements the IAsyncResult interface and provides status information on the I/O operation.

Remarks

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.

Applies to