Freigeben über


Overlapped Konstruktoren

Definition

Initialisiert eine neue Instanz der Overlapped-Klasse.

Überlädt

Name Beschreibung
Overlapped()

Initialisiert eine neue, leere Instanz der Overlapped Klasse.

Overlapped(Int32, Int32, Int32, IAsyncResult)
Veraltet.
Veraltet.
Veraltet.

Initialisiert eine neue Instanz der Overlapped Klasse mit der angegebenen Dateiposition, das 32-Bit-Ganzzahlhandle für ein Ereignis, das signalisiert wird, wenn der E/A-Vorgang abgeschlossen ist, und eine Schnittstelle, über die die Ergebnisse des Vorgangs zurückgegeben werden sollen.

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

Initialisiert eine neue Instanz der Overlapped Klasse mit der angegebenen Dateiposition, das Handle für ein Ereignis, das signalisiert wird, wenn der E/A-Vorgang abgeschlossen ist, und eine Schnittstelle, über die die Ergebnisse des Vorgangs zurückgegeben werden sollen.

Overlapped()

Quelle:
Overlapped.cs
Quelle:
Overlapped.cs
Quelle:
Overlapped.cs
Quelle:
Overlapped.cs
Quelle:
Overlapped.cs

Initialisiert eine neue, leere Instanz der Overlapped Klasse.

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

Gilt für:

Overlapped(Int32, Int32, Int32, IAsyncResult)

Quelle:
Overlapped.cs
Quelle:
Overlapped.cs
Quelle:
Overlapped.cs
Quelle:
Overlapped.cs
Quelle:
Overlapped.cs

Achtung

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

Achtung

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

Achtung

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

Initialisiert eine neue Instanz der Overlapped Klasse mit der angegebenen Dateiposition, das 32-Bit-Ganzzahlhandle für ein Ereignis, das signalisiert wird, wenn der E/A-Vorgang abgeschlossen ist, und eine Schnittstelle, über die die Ergebnisse des Vorgangs zurückgegeben werden sollen.

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.  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.  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 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.  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.  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)

Parameter

offsetLo
Int32

Das niedrige Wort der Dateiposition, an der die Übertragung gestartet werden soll.

offsetHi
Int32

Das hohe Wort der Dateiposition, an der die Übertragung gestartet werden soll.

hEvent
Int32

Das Handle für ein Ereignis, das signalisiert wird, wenn der E/A-Vorgang abgeschlossen ist.

ar
IAsyncResult

Ein Objekt, das die IAsyncResult Schnittstelle implementiert und Statusinformationen zum E/A-Vorgang bereitstellt.

Attribute

Hinweise

Verwenden Sie die WaitHandle.Handle Eigenschaft, um das Handle aller verwalteten Synchronisierungsereignisse abzurufen, die von der WaitHandle Klasse abgeleitet werden.

Ihre Implementierung IAsyncResult enthält Statusinformationen zum E/A-Vorgang. Übergeben Sie ihn an den Konstruktor im ar Parameter, und rufen Sie ihn später mit der AsyncResult Eigenschaft ab. Wenn für die Pack Methode UnsafePack eine Rückrufmethode angegeben ist, kann der Rückruf Ihre IAsyncResult abrufen, indem die NativeOverlapped empfangene Struktur entpackt wird.

Gilt für:

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

Quelle:
Overlapped.cs
Quelle:
Overlapped.cs
Quelle:
Overlapped.cs
Quelle:
Overlapped.cs
Quelle:
Overlapped.cs

Initialisiert eine neue Instanz der Overlapped Klasse mit der angegebenen Dateiposition, das Handle für ein Ereignis, das signalisiert wird, wenn der E/A-Vorgang abgeschlossen ist, und eine Schnittstelle, über die die Ergebnisse des Vorgangs zurückgegeben werden sollen.

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)

Parameter

offsetLo
Int32

Das niedrige Wort der Dateiposition, an der die Übertragung gestartet werden soll.

offsetHi
Int32

Das hohe Wort der Dateiposition, an der die Übertragung gestartet werden soll.

hEvent
IntPtr

nativeint

Das Handle für ein Ereignis, das signalisiert wird, wenn der E/A-Vorgang abgeschlossen ist.

ar
IAsyncResult

Ein Objekt, das die IAsyncResult Schnittstelle implementiert und Statusinformationen zum E/A-Vorgang bereitstellt.

Hinweise

Um das Handle eines verwalteten Synchronisierungsobjekts abzurufen, das von der WaitHandle Klasse abgeleitet wird, verwenden Sie die WaitHandle.SafeWaitHandle Eigenschaft, um ein SafeWaitHandle Objekt abzurufen, und rufen Sie dann die DangerousGetHandle Methode auf.

Ihre Implementierung IAsyncResult enthält Statusinformationen zum E/A-Vorgang. Übergeben Sie ihn an den Konstruktor im ar Parameter, und rufen Sie ihn später mit der AsyncResult Eigenschaft ab. Wenn für die Pack Methode UnsafePack eine Rückrufmethode angegeben ist, kann der Rückruf Ihre IAsyncResult abrufen, indem die NativeOverlapped empfangene Struktur entpackt wird.

Gilt für: