Overlapped 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 Overlapped 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| Overlapped() |
初始化类的新空实例 Overlapped 。 |
| Overlapped(Int32, Int32, Int32, IAsyncResult) |
已过时.
已过时.
已过时.
使用指定的文件位置初始化类的新实例 Overlapped ,将 32 位整数句柄初始化 I/O 操作完成后发出信号的事件,以及返回操作结果的接口。 |
| Overlapped(Int32, Int32, IntPtr, IAsyncResult) |
使用指定的文件位置初始化类的新实例 Overlapped 、I/O 操作完成时发出信号的事件的句柄,以及返回操作结果的接口。 |
Overlapped()
- Source:
- Overlapped.cs
- Source:
- Overlapped.cs
- Source:
- Overlapped.cs
- Source:
- Overlapped.cs
- Source:
- Overlapped.cs
初始化类的新空实例 Overlapped 。
public:
Overlapped();
public Overlapped();
Public Sub New ()
适用于
Overlapped(Int32, Int32, Int32, IAsyncResult)
- Source:
- Overlapped.cs
- Source:
- Overlapped.cs
- Source:
- Overlapped.cs
- Source:
- Overlapped.cs
- Source:
- 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 操作完成时发出信号的事件的句柄。
- ar
- IAsyncResult
实现 IAsyncResult 接口并提供有关 I/O 操作的状态信息的对象。
- 属性
注解
使用该 WaitHandle.Handle 属性获取派生自 WaitHandle 类的任何托管同步事件的句柄。
IAsyncResult实现提供有关 I/O 操作的状态信息。 将其传递给参数中的 ar 构造函数,并在稍后使用 AsyncResult 属性检索该构造函数。 如果为Pack或UnsafePack方法指定了回调方法,则回调可以通过解压缩NativeOverlapped它收到的结构来检索。IAsyncResult
适用于
Overlapped(Int32, Int32, IntPtr, IAsyncResult)
- Source:
- Overlapped.cs
- Source:
- Overlapped.cs
- Source:
- Overlapped.cs
- Source:
- Overlapped.cs
- Source:
- 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 操作完成时发出信号的事件的句柄。
- ar
- IAsyncResult
实现 IAsyncResult 接口并提供有关 I/O 操作的状态信息的对象。
注解
若要获取派生自 WaitHandle 类的托管同步对象的句柄,请使用 WaitHandle.SafeWaitHandle 属性获取对象 SafeWaitHandle ,然后调用 DangerousGetHandle 该方法。
IAsyncResult实现提供有关 I/O 操作的状态信息。 将其传递给参数中的 ar 构造函数,并在稍后使用 AsyncResult 属性检索该构造函数。 如果为Pack或UnsafePack方法指定了回调方法,则回调可以通过解压缩NativeOverlapped它收到的结构来检索。IAsyncResult