共用方式為


Overlapped 建構函式

定義

初始化 Overlapped 類別的新執行個體。

多載

Overlapped()

初始化 Overlapped 類別的新的空執行個體。

Overlapped(Int32, Int32, Int32, IAsyncResult)
已過時。
已過時。
已過時。
已過時。

使用指定的檔案位置、當 I/O 作業完成時收到信號的事件控制代碼 (32 位元整數),以及傳回作業結果所透過的介面,初始化 Overlapped 類別的新執行個體。

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

使用指定的檔案位置、當 I/O 作業完成時收到信號的事件控制代碼,以及傳回作業結果所透過的介面,初始化 Overlapped 類別的新執行個體。

Overlapped()

初始化 Overlapped 類別的新的空執行個體。

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

適用於

Overlapped(Int32, Int32, Int32, IAsyncResult)

警告

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

警告

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

警告

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

警告

Not 64bit compatible. Please use the constructor that takes IntPtr for the event handle

使用指定的檔案位置、當 I/O 作業完成時收到信號的事件控制代碼 (32 位元整數),以及傳回作業結果所透過的介面,初始化 Overlapped 類別的新執行個體。

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.")]
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("Not 64bit compatible.  Please use the constructor that takes IntPtr for the event handle")]
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")>]
new System.Threading.Overlapped : int * int * int * IAsyncResult -> System.Threading.Overlapped
[<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.  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
[<System.Obsolete("Not 64bit compatible.  Please use the constructor that takes IntPtr for the event handle")>]
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)

參數

offsetLo
Int32

要開始傳輸之檔案位置的低位文字。

offsetHi
Int32

要開始傳輸之檔案位置的高位文字。

hEvent
Int32

當 I/O 作業完成時收到信號的事件控制代碼。

ar
IAsyncResult

實作 IAsyncResult 介面並提供 I/O 作業狀態資訊的物件。

屬性

備註

WaitHandle.Handle使用 屬性可取得衍生自 WaitHandle 類別之任何 Managed 同步處理事件的控制碼。

的實作 IAsyncResult 提供 I/O 作業的狀態資訊。 將它傳遞給 參數中的 ar 建構函式,並在稍後使用 AsyncResult 屬性擷取它。 如果為 或 UnsafePack 方法指定 Pack 回呼方法,則回呼可以解壓縮 NativeOverlapped 所接收的結構來擷取。 IAsyncResult

適用於

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

使用指定的檔案位置、當 I/O 作業完成時收到信號的事件控制代碼,以及傳回作業結果所透過的介面,初始化 Overlapped 類別的新執行個體。

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)

參數

offsetLo
Int32

要開始傳輸之檔案位置的低位文字。

offsetHi
Int32

要開始傳輸之檔案位置的高位文字。

hEvent
IntPtr

nativeint

當 I/O 作業完成時收到信號的事件控制代碼。

ar
IAsyncResult

實作 IAsyncResult 介面並提供 I/O 作業狀態資訊的物件。

備註

若要取得衍生自 WaitHandle 類別的 Managed 同步處理物件的控制碼,請使用 WaitHandle.SafeWaitHandle 屬性取得 SafeWaitHandle 物件,然後呼叫 DangerousGetHandle 方法。

的實作 IAsyncResult 提供 I/O 作業的狀態資訊。 將它傳遞給 參數中的 ar 建構函式,並在稍後使用 AsyncResult 屬性擷取它。 如果為 或 UnsafePack 方法指定 Pack 回呼方法,則回呼可以解壓縮 NativeOverlapped 所接收的結構來擷取。 IAsyncResult

適用於