共用方式為


Overlapped 建構函式

定義

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

多載

名稱 Description
Overlapped()

初始化一個新的、空的類別實例 Overlapped

Overlapped(Int32, Int32, Int32, IAsyncResult)
已淘汰.
已淘汰.
已淘汰.

初始化類別的新實例 Overlapped ,設定指定的檔案位置、32 位元整數的代言柄,該事件在 I/O 操作完成時會被通知,並透過介面回傳操作結果。

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

初始化類別的新實例 Overlapped ,包含指定的檔案位置、I/O 操作完成時會發出的事件代柄,以及回傳操作結果的介面。

Overlapped()

來源:
Overlapped.cs
來源:
Overlapped.cs
來源:
Overlapped.cs
來源:
Overlapped.cs
來源:
Overlapped.cs

初始化一個新的、空的類別實例 Overlapped

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

適用於

Overlapped(Int32, Int32, Int32, IAsyncResult)

來源:
Overlapped.cs
來源:
Overlapped.cs
來源:
Overlapped.cs
來源:
Overlapped.cs
來源:
Overlapped.cs

警告

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. https://go.microsoft.com/fwlink/?linkid=14202

警告

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

初始化類別的新實例 Overlapped ,設定指定的檔案位置、32 位元整數的代言柄,該事件在 I/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)

參數

offsetLo
Int32

檔案位置的最低字,開始傳輸時。

offsetHi
Int32

檔案位置的最高字,開始傳輸。

hEvent
Int32

當 I/O 操作完成時會被通知的事件的 handle。

ar
IAsyncResult

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

屬性

備註

利用這個 WaitHandle.Handle 屬性取得任何由 WaitHandle 該類別衍生的管理同步事件的代柄。

你的實作 IAsyncResult 提供了 I/O 操作的狀態資訊。 將參數傳 ar 給建構子,之後再用該 AsyncResult 屬性取回。 如果為 or 方法指定Pack了回調方法,回調可以透過解壓接收到的NativeOverlapped結構來取得你的IAsyncResultUnsafePack資料。

適用於

Overlapped(Int32, Int32, IntPtr, IAsyncResult)

來源:
Overlapped.cs
來源:
Overlapped.cs
來源:
Overlapped.cs
來源:
Overlapped.cs
來源:
Overlapped.cs

初始化類別的新實例 Overlapped ,包含指定的檔案位置、I/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)

參數

offsetLo
Int32

檔案位置的最低字,開始傳輸時。

offsetHi
Int32

檔案位置的最高字,開始傳輸。

hEvent
IntPtr

nativeint

當 I/O 操作完成時會被通知的事件的 handle。

ar
IAsyncResult

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

備註

要取得由 WaitHandle 該類別衍生的管理同步物件的句柄,請使用該 WaitHandle.SafeWaitHandle 屬性取得 SafeWaitHandle 物件,然後呼叫該 DangerousGetHandle 方法。

你的實作 IAsyncResult 提供了 I/O 操作的狀態資訊。 將參數傳 ar 給建構子,之後再用該 AsyncResult 屬性取回。 如果為 or 方法指定Pack了回調方法,回調可以透過解壓接收到的NativeOverlapped結構來取得你的IAsyncResultUnsafePack資料。

適用於