Overlapped Construtores

Definição

Inicializa uma nova instância da Overlapped classe.

Sobrecargas

Name Description
Overlapped()

Inicializa uma nova instância vazia da Overlapped classe.

Overlapped(Int32, Int32, Int32, IAsyncResult)
Obsoleto.
Obsoleto.
Obsoleto.

Inicializa uma nova instância da Overlapped classe com a posição do ficheiro especificada, o handle inteiro de 32 bits para um evento que é sinalizado quando a operação de E/S está concluída, e uma interface através da qual devolver os resultados da operação.

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

Inicializa uma nova instância da Overlapped classe com a posição do ficheiro especificada, o handle de um evento que é sinalizado quando a operação de I/O está completa, e uma interface através da qual devolver os resultados da operação.

Overlapped()

Origem:
Overlapped.cs
Origem:
Overlapped.cs
Origem:
Overlapped.cs
Origem:
Overlapped.cs
Origem:
Overlapped.cs

Inicializa uma nova instância vazia da Overlapped classe.

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

Aplica-se a

Overlapped(Int32, Int32, Int32, IAsyncResult)

Origem:
Overlapped.cs
Origem:
Overlapped.cs
Origem:
Overlapped.cs
Origem:
Overlapped.cs
Origem:
Overlapped.cs

Atenção

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

Atenção

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

Atenção

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

Inicializa uma nova instância da Overlapped classe com a posição do ficheiro especificada, o handle inteiro de 32 bits para um evento que é sinalizado quando a operação de E/S está concluída, e uma interface através da qual devolver os resultados da operação.

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)

Parâmetros

offsetLo
Int32

A palavra baixa da posição do ficheiro para iniciar a transferência.

offsetHi
Int32

A palavra elevada da posição do ficheiro para iniciar a transferência.

hEvent
Int32

O handle de um evento que é sinalizado quando a operação de I/O está concluída.

ar
IAsyncResult

Um objeto que implementa a IAsyncResult interface e fornece informação de estado sobre a operação de I/O.

Atributos

Observações

Use a WaitHandle.Handle propriedade para obter o handle de qualquer evento de sincronização gerida que derive da WaitHandle classe.

A sua implementação fornece IAsyncResult informação de estado sobre a operação de E/S. Passa-o para o construtor no ar parâmetro e recupera-o mais tarde com a AsyncResult propriedade. Se for especificado um método de callback para o Pack método ou UnsafePack , o callback pode recuperar o seu IAsyncResult ao desempacotar a NativeOverlapped estrutura que recebe.

Aplica-se a

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

Origem:
Overlapped.cs
Origem:
Overlapped.cs
Origem:
Overlapped.cs
Origem:
Overlapped.cs
Origem:
Overlapped.cs

Inicializa uma nova instância da Overlapped classe com a posição do ficheiro especificada, o handle de um evento que é sinalizado quando a operação de I/O está completa, e uma interface através da qual devolver os resultados da operação.

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)

Parâmetros

offsetLo
Int32

A palavra baixa da posição do ficheiro para iniciar a transferência.

offsetHi
Int32

A palavra elevada da posição do ficheiro para iniciar a transferência.

hEvent
IntPtr

nativeint

O handle de um evento que é sinalizado quando a operação de I/O está concluída.

ar
IAsyncResult

Um objeto que implementa a IAsyncResult interface e fornece informação de estado sobre a operação de I/O.

Observações

Para obter o handle de um objeto de sincronização gerida que deriva da WaitHandle classe, use a WaitHandle.SafeWaitHandle propriedade para obter um SafeWaitHandle objeto e depois chame o DangerousGetHandle método.

A sua implementação fornece IAsyncResult informação de estado sobre a operação de E/S. Passa-o para o construtor no ar parâmetro e recupera-o mais tarde com a AsyncResult propriedade. Se for especificado um método de callback para o Pack método ou UnsafePack , o callback pode recuperar o seu IAsyncResult ao desempacotar a NativeOverlapped estrutura que recebe.

Aplica-se a