Overlapped Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy Overlapped.
Przeciążenia
| Nazwa | Opis |
|---|---|
| Overlapped() |
Inicjuje nowe, puste wystąpienie Overlapped klasy. |
| Overlapped(Int32, Int32, Int32, IAsyncResult) |
Przestarzałe.
Przestarzałe.
Przestarzałe.
Inicjuje nowe wystąpienie Overlapped klasy z określoną pozycją pliku, 32-bitową liczbą całkowitą dojścia do zdarzenia sygnalizowanego po zakończeniu operacji we/wy i interfejsu, za pomocą którego zostaną zwrócone wyniki operacji. |
| Overlapped(Int32, Int32, IntPtr, IAsyncResult) |
Inicjuje nowe wystąpienie Overlapped klasy z określoną pozycją pliku, dojście do zdarzenia, które jest sygnalizowane po zakończeniu operacji we/wy, oraz interfejs, za pomocą którego zostaną zwrócone wyniki operacji. |
Overlapped()
- Źródło:
- Overlapped.cs
- Źródło:
- Overlapped.cs
- Źródło:
- Overlapped.cs
- Źródło:
- Overlapped.cs
- Źródło:
- Overlapped.cs
Inicjuje nowe, puste wystąpienie Overlapped klasy.
public:
Overlapped();
public Overlapped();
Public Sub New ()
Dotyczy
Overlapped(Int32, Int32, Int32, IAsyncResult)
- Źródło:
- Overlapped.cs
- Źródło:
- Overlapped.cs
- Źródło:
- Overlapped.cs
- Źródło:
- Overlapped.cs
- Źródło:
- Overlapped.cs
Uwaga
This constructor is not 64-bit compatible and has been deprecated. Use the constructor that accepts an IntPtr for the event handle instead.
Uwaga
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
Uwaga
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
Inicjuje nowe wystąpienie Overlapped klasy z określoną pozycją pliku, 32-bitową liczbą całkowitą dojścia do zdarzenia sygnalizowanego po zakończeniu operacji we/wy i interfejsu, za pomocą którego zostaną zwrócone wyniki operacji.
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)
Parametry
- offsetLo
- Int32
Niski wyraz położenia pliku, w którym ma rozpocząć transfer.
- offsetHi
- Int32
Wysoki wyraz położenia pliku, w którym należy rozpocząć transfer.
- hEvent
- Int32
Dojście do zdarzenia, które jest sygnalizowane po zakończeniu operacji we/wy.
- ar
- IAsyncResult
Obiekt, który implementuje IAsyncResult interfejs i udostępnia informacje o stanie operacji we/wy.
- Atrybuty
Uwagi
WaitHandle.Handle Użyj właściwości , aby uzyskać dojście do dowolnego zarządzanego zdarzenia synchronizacji pochodzącego z WaitHandle klasy .
Implementacja funkcji IAsyncResult udostępnia informacje o stanie operacji we/wy. Przekaż go do konstruktora w parametrze ar i pobierz go później za pomocą AsyncResult właściwości . Jeśli dla metody lub określono Pack metodę wywołania UnsafePack zwrotnego, wywołanie zwrotne może pobrać IAsyncResult , rozpakując NativeOverlapped strukturę, którą otrzymuje.
Dotyczy
Overlapped(Int32, Int32, IntPtr, IAsyncResult)
- Źródło:
- Overlapped.cs
- Źródło:
- Overlapped.cs
- Źródło:
- Overlapped.cs
- Źródło:
- Overlapped.cs
- Źródło:
- Overlapped.cs
Inicjuje nowe wystąpienie Overlapped klasy z określoną pozycją pliku, dojście do zdarzenia, które jest sygnalizowane po zakończeniu operacji we/wy, oraz interfejs, za pomocą którego zostaną zwrócone wyniki operacji.
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)
Parametry
- offsetLo
- Int32
Niski wyraz położenia pliku, w którym ma rozpocząć transfer.
- offsetHi
- Int32
Wysoki wyraz położenia pliku, w którym należy rozpocząć transfer.
- hEvent
-
IntPtr
nativeint
Dojście do zdarzenia, które jest sygnalizowane po zakończeniu operacji we/wy.
- ar
- IAsyncResult
Obiekt, który implementuje IAsyncResult interfejs i udostępnia informacje o stanie operacji we/wy.
Uwagi
Aby uzyskać dojście do obiektu synchronizacji zarządzanej pochodzącej z WaitHandle klasy, użyj WaitHandle.SafeWaitHandle właściwości , aby uzyskać obiekt, a następnie wywołaj metodę SafeWaitHandleDangerousGetHandle .
Implementacja funkcji IAsyncResult udostępnia informacje o stanie operacji we/wy. Przekaż go do konstruktora w parametrze ar i pobierz go później za pomocą AsyncResult właściwości . Jeśli dla metody lub określono Pack metodę wywołania UnsafePack zwrotnego, wywołanie zwrotne może pobrać IAsyncResult , rozpakując NativeOverlapped strukturę, którą otrzymuje.