Bagikan melalui


Overlapped Konstruktor

Definisi

Menginisialisasi instans baru dari kelas Overlapped.

Overload

Nama Deskripsi
Overlapped()

Menginisialisasi instans baru yang kosong dari Overlapped kelas.

Overlapped(Int32, Int32, Int32, IAsyncResult)
Kedaluwarsa.
Kedaluwarsa.
Kedaluwarsa.

Menginisialisasi instans Overlapped baru kelas dengan posisi file yang ditentukan, handel bilangan bulat 32-bit ke peristiwa yang disinyalir ketika operasi I/O selesai, dan antarmuka untuk mengembalikan hasil operasi.

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

Menginisialisasi instans Overlapped baru kelas dengan posisi file yang ditentukan, handel ke peristiwa yang disinyalir ketika operasi I/O selesai, dan antarmuka untuk mengembalikan hasil operasi.

Overlapped()

Sumber:
Overlapped.cs
Sumber:
Overlapped.cs
Sumber:
Overlapped.cs
Sumber:
Overlapped.cs
Sumber:
Overlapped.cs

Menginisialisasi instans baru yang kosong dari Overlapped kelas.

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

Berlaku untuk

Overlapped(Int32, Int32, Int32, IAsyncResult)

Sumber:
Overlapped.cs
Sumber:
Overlapped.cs
Sumber:
Overlapped.cs
Sumber:
Overlapped.cs
Sumber:
Overlapped.cs

Perhatian

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

Perhatian

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

Perhatian

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

Menginisialisasi instans Overlapped baru kelas dengan posisi file yang ditentukan, handel bilangan bulat 32-bit ke peristiwa yang disinyalir ketika operasi I/O selesai, dan antarmuka untuk mengembalikan hasil operasi.

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)

Parameter

offsetLo
Int32

Kata rendah dari posisi file untuk memulai transfer.

offsetHi
Int32

Kata tinggi dari posisi file untuk memulai transfer.

hEvent
Int32

Handel ke peristiwa yang disinyalir ketika operasi I/O selesai.

ar
IAsyncResult

Objek yang mengimplementasikan IAsyncResult antarmuka dan menyediakan informasi status pada operasi I/O.

Atribut

Keterangan

WaitHandle.Handle Gunakan properti untuk mendapatkan penanganan peristiwa sinkronisasi terkelola apa pun yang berasal dari WaitHandle kelas .

Implementasi Anda memberikan IAsyncResult informasi status tentang operasi I/O. Teruskan ke konstruktor dalam ar parameter, dan ambil nanti dengan AsyncResult properti . Jika metode panggilan balik ditentukan untuk Pack metode atau UnsafePack , panggilan balik dapat mengambil Anda IAsyncResult dengan membongkah struktur yang NativeOverlapped diterimanya.

Berlaku untuk

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

Sumber:
Overlapped.cs
Sumber:
Overlapped.cs
Sumber:
Overlapped.cs
Sumber:
Overlapped.cs
Sumber:
Overlapped.cs

Menginisialisasi instans Overlapped baru kelas dengan posisi file yang ditentukan, handel ke peristiwa yang disinyalir ketika operasi I/O selesai, dan antarmuka untuk mengembalikan hasil operasi.

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)

Parameter

offsetLo
Int32

Kata rendah dari posisi file untuk memulai transfer.

offsetHi
Int32

Kata tinggi dari posisi file untuk memulai transfer.

hEvent
IntPtr

nativeint

Handel ke peristiwa yang disinyalir ketika operasi I/O selesai.

ar
IAsyncResult

Objek yang mengimplementasikan IAsyncResult antarmuka dan menyediakan informasi status pada operasi I/O.

Keterangan

Untuk mendapatkan handel objek sinkronisasi terkelola yang berasal dari WaitHandle kelas , gunakan WaitHandle.SafeWaitHandle properti untuk mendapatkan SafeWaitHandle objek, lalu panggil DangerousGetHandle metode .

Implementasi Anda memberikan IAsyncResult informasi status tentang operasi I/O. Teruskan ke konstruktor dalam ar parameter, dan ambil nanti dengan AsyncResult properti . Jika metode panggilan balik ditentukan untuk Pack metode atau UnsafePack , panggilan balik dapat mengambil Anda IAsyncResult dengan membongkah struktur yang NativeOverlapped diterimanya.

Berlaku untuk