OutOfMemoryException コンストラクタ ()
アセンブリ: mscorlib (mscorlib.dll 内)


このコンストラクタは、新しいインスタンスの Message プロパティを、"プログラムの実行を続行するための十分なメモリがありませんでした。" などのエラーを説明するシステムから提供されるメッセージに初期化します。このメッセージは、システムの現在のカルチャを考慮して指定します。
OutOfMemoryException のインスタンスの初期プロパティ値を次の表に示します。

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


OutOfMemoryException コンストラクタ (SerializationInfo, StreamingContext)
アセンブリ: mscorlib (mscorlib.dll 内)

Dim info As SerializationInfo Dim context As StreamingContext Dim instance As New OutOfMemoryException(info, context)

このコンストラクタは、逆シリアル化中に、ストリームで送信された例外オブジェクトを再構築するために呼び出されます。詳細については、「XML シリアル化および SOAP シリアル化」を参照してください。
Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows CE プラットフォームメモ : 共通言語ランタイムは、メモリが不足して内部的に使用する領域や新しいマネージ オブジェクトを割り当てることができない場合、OutOfMemoryException 例外をスローする場合があります。この例外を回避するには、64 KB 以上のメモリを消費する大規模メソッドのプログラミングを行わないでください。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


OutOfMemoryException コンストラクタ (String, Exception)
アセンブリ: mscorlib (mscorlib.dll 内)

Dim message As String Dim innerException As Exception Dim instance As New OutOfMemoryException(message, innerException)

前の例外の直接の結果としてスローされる例外については、InnerException プロパティに、前の例外への参照が格納されます。InnerException プロパティは、コンストラクタに渡されたものと同じ値を返します。InnerException プロパティによって内部例外値がコンストラクタに渡されなかった場合は、null 参照 (Visual Basic の場合は Nothing) を返します。
OutOfMemoryException のインスタンスの初期プロパティ値を次の表に示します。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


OutOfMemoryException コンストラクタ

名前 | 説明 |
---|---|
OutOfMemoryException () | OutOfMemoryException クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
OutOfMemoryException (String) | 指定したエラー メッセージを使用して、OutOfMemoryException クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
OutOfMemoryException (SerializationInfo, StreamingContext) | シリアル化したデータを使用して、OutOfMemoryException クラスの新しいインスタンスを初期化します。 |
OutOfMemoryException (String, Exception) | 指定したエラー メッセージと、この例外の原因である内部例外への参照を使用して、OutOfMemoryException クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |

OutOfMemoryException コンストラクタ (String)
アセンブリ: mscorlib (mscorlib.dll 内)


message パラメータの内容は、ユーザーが理解できる内容にします。このコンストラクタの呼び出し元は、この文字列が現在のシステムのカルチャに合わせてローカライズ済みであることを確認しておく必要があります。
OutOfMemoryException のインスタンスの初期プロパティ値を次の表に示します。

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- OutOfMemoryException コンストラクタ ()のページへのリンク