Overlappedとは? わかりやすく解説

Overlapped クラス

Overlapped インスタンスからの情報を NativeOverlapped 構造体に転送するためのメソッドを含む、Win32 OVERLAPPED 構造体のマネージ表現を提供します。

名前空間: System.Threading
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<ComVisibleAttribute(True)> _
Public Class Overlapped
[ComVisibleAttribute(true)] 
public class Overlapped
[ComVisibleAttribute(true)] 
public ref class Overlapped
/** @attribute ComVisibleAttribute(true) */ 
public class Overlapped
ComVisibleAttribute(true) 
public class Overlapped
解説解説

Pack メソッドおよび UnsafePack メソッドは、Overlapped オブジェクトからの情報を、非同期ファイル I/O 用の Win32 API 関数に渡すことができる NativeOverlapped 構造体に転送します。Unpack メソッドは、NativeOverlapped 構造体からの情報を Overlapped クラスのインスタンスに転送します。

Overlapped オブジェクトのプロパティを変更すると、このオブジェクトに関連付けられている NativeOverlapped 構造体が影響を受けます。その逆も同様です。

継承階層継承階層
System.Object
  System.Threading.Overlapped
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Overlapped コンストラクタ ()


Overlapped コンストラクタ (Int32, Int32, IntPtr, IAsyncResult)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

ファイル位置、I/O 操作が完了したときに通知されるイベントのハンドル、および操作結果を返すためのインターフェイスを指定して、Overlapped クラスの新しいインスタンスを初期化します。

名前空間: System.Threading
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public Sub New ( _
    offsetLo As Integer, _
    offsetHi As Integer, _
    hEvent As IntPtr, _
    ar As IAsyncResult _
)
Dim offsetLo As Integer
Dim offsetHi As Integer
Dim hEvent As IntPtr
Dim ar As IAsyncResult

Dim instance As New Overlapped(offsetLo,
 offsetHi, hEvent, ar)
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
)
public function Overlapped (
    offsetLo : int, 
    offsetHi : int, 
    hEvent : IntPtr, 
    ar : IAsyncResult
)

パラメータ

offsetLo

転送を開始するファイル位置の下位ワード。

offsetHi

転送を開始するファイル位置の上位ワード。

hEvent

I/O 操作が完了したときに通知されるイベントのハンドル。

ar

IAsyncResult インターフェイスを実装し、I/O 操作に関するステータス情報を提供するオブジェクト。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Overlapped コンストラクタ (Int32, Int32, Int32, IAsyncResult)

メモ : このコンストラクタは、互換性のために残されています。 旧式でない代替が必要な場合は、Overlapped(Int32,Int32,IntPtr,IAsyncResult) を使用してください。

ファイル位置、I/O 操作が完了したときに通知されるイベントの 32 ビット整数ハンドル、および操作結果を返すためのインターフェイスを指定して、Overlapped クラスの新しいインスタンスを初期化します。

名前空間: System.Threading
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<ObsoleteAttribute("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 Sub New ( _
    offsetLo As Integer, _
    offsetHi As Integer, _
    hEvent As Integer, _
    ar As IAsyncResult _
)
Dim offsetLo As Integer
Dim offsetHi As Integer
Dim hEvent As Integer
Dim ar As IAsyncResult

Dim instance As New Overlapped(offsetLo,
 offsetHi, hEvent, ar)
[ObsoleteAttribute("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
)
[ObsoleteAttribute(L"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
)
/** @attribute ObsoleteAttribute("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
)
ObsoleteAttribute("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 function Overlapped (
    offsetLo : int, 
    offsetHi : int, 
    hEvent : int, 
    ar : IAsyncResult
)

パラメータ

offsetLo

転送を開始するファイル位置の下位ワード。

offsetHi

転送を開始するファイル位置の上位ワード。

hEvent

I/O 操作が完了したときに通知されるイベントのハンドル。

ar

IAsyncResult インターフェイスを実装し、I/O 操作に関するステータス情報を提供するオブジェクト。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Overlapped コンストラクタ


Overlapped プロパティ


Overlapped メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

Overlapped クラス
System.Threading 名前空間

Overlapped メンバ

Overlapped インスタンスからの情報を NativeOverlapped 構造体に転送するためのメソッドを含む、Win32 OVERLAPPED 構造体のマネージ表現を提供します。

Overlapped データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

Overlapped クラス
System.Threading 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「Overlapped」の関連用語

Overlappedのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Overlappedのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS