Compartilhar via


Overlapped Construtores

Definição

Inicializa uma nova instância da classe Overlapped.

Sobrecargas

Nome 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 de arquivo especificada, o identificador inteiro de 32 bits para um evento que é sinalizado quando a operação de E/S é concluída e uma interface pela qual retornar os resultados da operação.

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

Inicializa uma nova instância da classe com a Overlapped posição de arquivo especificada, o identificador para um evento que é sinalizado quando a operação de E/S é concluída e uma interface por meio da qual retornar 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

Cuidado

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

Cuidado

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

Cuidado

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 de arquivo especificada, o identificador inteiro de 32 bits para um evento que é sinalizado quando a operação de E/S é concluída e uma interface pela qual retornar 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 arquivo na qual iniciar a transferência.

offsetHi
Int32

A palavra alta da posição do arquivo na qual iniciar a transferência.

hEvent
Int32

O identificador de um evento que é sinalizado quando a operação de E/S é concluída.

ar
IAsyncResult

Um objeto que implementa a IAsyncResult interface e fornece informações de status sobre a operação de E/S.

Atributos

Comentários

Use a WaitHandle.Handle propriedade para obter o identificador de qualquer evento de sincronização gerenciada que deriva da WaitHandle classe.

Sua implementação fornece informações de IAsyncResult status sobre a operação de E/S. Passe-o para o construtor no parâmetro e recupere-o ar posteriormente com a AsyncResult propriedade. Se um método de retorno de chamada for especificado para o método ou UnsafePack o Pack método, o retorno de chamada poderá recuperar você IAsyncResult desempacotando a NativeOverlapped estrutura recebida.

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 classe com a Overlapped posição de arquivo especificada, o identificador para um evento que é sinalizado quando a operação de E/S é concluída e uma interface por meio da qual retornar 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 arquivo na qual iniciar a transferência.

offsetHi
Int32

A palavra alta da posição do arquivo na qual iniciar a transferência.

hEvent
IntPtr

nativeint

O identificador de um evento que é sinalizado quando a operação de E/S é concluída.

ar
IAsyncResult

Um objeto que implementa a IAsyncResult interface e fornece informações de status sobre a operação de E/S.

Comentários

Para obter o identificador de um objeto de sincronização gerenciado que deriva da WaitHandle classe, use a WaitHandle.SafeWaitHandle propriedade para obter um SafeWaitHandle objeto e, em seguida, chame o DangerousGetHandle método.

Sua implementação fornece informações de IAsyncResult status sobre a operação de E/S. Passe-o para o construtor no parâmetro e recupere-o ar posteriormente com a AsyncResult propriedade. Se um método de retorno de chamada for especificado para o método ou UnsafePack o Pack método, o retorno de chamada poderá recuperar você IAsyncResult desempacotando a NativeOverlapped estrutura recebida.

Aplica-se a