Partager via


Overlapped Constructeurs

Définition

Initialise une nouvelle instance de la classe Overlapped.

Surcharges

Nom Description
Overlapped()

Initialise une nouvelle instance vide de la Overlapped classe.

Overlapped(Int32, Int32, Int32, IAsyncResult)
Obsolète.
Obsolète.
Obsolète.

Initialise une nouvelle instance de la Overlapped classe avec la position de fichier spécifiée, le handle entier 32 bits vers un événement signalé lorsque l’opération d’E/S est terminée et une interface à travers laquelle retourner les résultats de l’opération.

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

Initialise une nouvelle instance de la Overlapped classe avec la position de fichier spécifiée, le handle vers un événement signalé lorsque l’opération d’E/S est terminée et une interface par le biais de laquelle retourner les résultats de l’opération.

Overlapped()

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

Initialise une nouvelle instance vide de la Overlapped classe.

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

S’applique à

Overlapped(Int32, Int32, Int32, IAsyncResult)

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

Attention

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

Attention

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

Attention

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

Initialise une nouvelle instance de la Overlapped classe avec la position de fichier spécifiée, le handle entier 32 bits vers un événement signalé lorsque l’opération d’E/S est terminée et une interface à travers laquelle retourner les résultats de l’opération.

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)

Paramètres

offsetLo
Int32

Mot bas de la position du fichier à laquelle démarrer le transfert.

offsetHi
Int32

Mot élevé de la position de fichier à laquelle démarrer le transfert.

hEvent
Int32

Handle vers un événement signalé lorsque l’opération d’E/S est terminée.

ar
IAsyncResult

Objet qui implémente l’interface IAsyncResult et fournit des informations d’état sur l’opération d’E/S.

Attributs

Remarques

Utilisez la WaitHandle.Handle propriété pour obtenir le handle d’un événement de synchronisation managée qui dérive de la WaitHandle classe.

Votre implémentation fournit IAsyncResult des informations d’état sur l’opération d’E/S. Passez-le au constructeur dans le ar paramètre et récupérez-le ultérieurement avec la AsyncResult propriété. Si une méthode de rappel est spécifiée pour la ou UnsafePack la Pack méthode, le rappel peut récupérer votre IAsyncResult en décompressant la NativeOverlapped structure qu’elle reçoit.

S’applique à

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

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

Initialise une nouvelle instance de la Overlapped classe avec la position de fichier spécifiée, le handle vers un événement signalé lorsque l’opération d’E/S est terminée et une interface par le biais de laquelle retourner les résultats de l’opération.

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)

Paramètres

offsetLo
Int32

Mot bas de la position du fichier à laquelle démarrer le transfert.

offsetHi
Int32

Mot élevé de la position de fichier à laquelle démarrer le transfert.

hEvent
IntPtr

nativeint

Handle vers un événement signalé lorsque l’opération d’E/S est terminée.

ar
IAsyncResult

Objet qui implémente l’interface IAsyncResult et fournit des informations d’état sur l’opération d’E/S.

Remarques

Pour obtenir le handle d’un objet de synchronisation managé qui dérive de la WaitHandle classe, utilisez la WaitHandle.SafeWaitHandle propriété pour obtenir un SafeWaitHandle objet, puis appelez la DangerousGetHandle méthode.

Votre implémentation fournit IAsyncResult des informations d’état sur l’opération d’E/S. Passez-le au constructeur dans le ar paramètre et récupérez-le ultérieurement avec la AsyncResult propriété. Si une méthode de rappel est spécifiée pour la ou UnsafePack la Pack méthode, le rappel peut récupérer votre IAsyncResult en décompressant la NativeOverlapped structure qu’elle reçoit.

S’applique à