Condividi tramite


Overlapped Costruttori

Definizione

Inizializza una nuova istanza della classe Overlapped.

Overload

Nome Descrizione
Overlapped()

Inizializza una nuova istanza vuota della Overlapped classe .

Overlapped(Int32, Int32, Int32, IAsyncResult)
Obsoleti.
Obsoleti.
Obsoleti.

Inizializza una nuova istanza della Overlapped classe con la posizione del file specificata, l'handle integer a 32 bit a un evento segnalato al termine dell'operazione di I/O e un'interfaccia tramite cui restituire i risultati dell'operazione.

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

Inizializza una nuova istanza della classe con la Overlapped posizione del file specificata, l'handle a un evento segnalato al termine dell'operazione di I/O e un'interfaccia tramite cui restituire i risultati dell'operazione.

Overlapped()

Origine:
Overlapped.cs
Origine:
Overlapped.cs
Origine:
Overlapped.cs
Origine:
Overlapped.cs
Origine:
Overlapped.cs

Inizializza una nuova istanza vuota della Overlapped classe .

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

Si applica a

Overlapped(Int32, Int32, Int32, IAsyncResult)

Origine:
Overlapped.cs
Origine:
Overlapped.cs
Origine:
Overlapped.cs
Origine:
Overlapped.cs
Origine:
Overlapped.cs

Attenzione

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

Attenzione

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

Attenzione

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

Inizializza una nuova istanza della Overlapped classe con la posizione del file specificata, l'handle integer a 32 bit a un evento segnalato al termine dell'operazione di I/O e un'interfaccia tramite cui restituire i risultati dell'operazione.

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)

Parametri

offsetLo
Int32

Parola bassa della posizione del file in corrispondenza della quale avviare il trasferimento.

offsetHi
Int32

Parola alta della posizione del file in corrispondenza della quale avviare il trasferimento.

hEvent
Int32

Handle per un evento segnalato al termine dell'operazione di I/O.

ar
IAsyncResult

Oggetto che implementa l'interfaccia IAsyncResult e fornisce informazioni sullo stato sull'operazione di I/O.

Attributi

Commenti

Utilizzare la WaitHandle.Handle proprietà per ottenere l'handle di qualsiasi evento di sincronizzazione gestito che deriva dalla WaitHandle classe .

L'implementazione di IAsyncResult fornisce informazioni sullo stato sull'operazione di I/O. Passarlo al costruttore nel ar parametro e recuperarlo in un secondo momento con la AsyncResult proprietà . Se per il Pack metodo o UnsafePack viene specificato un metodo di callback, il callback può recuperare IAsyncResult l'oggetto decomprimendo la NativeOverlapped struttura ricevuta.

Si applica a

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

Origine:
Overlapped.cs
Origine:
Overlapped.cs
Origine:
Overlapped.cs
Origine:
Overlapped.cs
Origine:
Overlapped.cs

Inizializza una nuova istanza della classe con la Overlapped posizione del file specificata, l'handle a un evento segnalato al termine dell'operazione di I/O e un'interfaccia tramite cui restituire i risultati dell'operazione.

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)

Parametri

offsetLo
Int32

Parola bassa della posizione del file in corrispondenza della quale avviare il trasferimento.

offsetHi
Int32

Parola alta della posizione del file in corrispondenza della quale avviare il trasferimento.

hEvent
IntPtr

nativeint

Handle per un evento segnalato al termine dell'operazione di I/O.

ar
IAsyncResult

Oggetto che implementa l'interfaccia IAsyncResult e fornisce informazioni sullo stato sull'operazione di I/O.

Commenti

Per ottenere l'handle di un oggetto di sincronizzazione gestito che deriva dalla WaitHandle classe , utilizzare la WaitHandle.SafeWaitHandle proprietà per ottenere un SafeWaitHandle oggetto e quindi chiamare il DangerousGetHandle metodo .

L'implementazione di IAsyncResult fornisce informazioni sullo stato sull'operazione di I/O. Passarlo al costruttore nel ar parametro e recuperarlo in un secondo momento con la AsyncResult proprietà . Se per il Pack metodo o UnsafePack viene specificato un metodo di callback, il callback può recuperare IAsyncResult l'oggetto decomprimendo la NativeOverlapped struttura ricevuta.

Si applica a