ExternalException クラス
アセンブリ: mscorlib (mscorlib.dll 内)
構文
<SerializableAttribute> _ <ComVisibleAttribute(True)> _ Public Class ExternalException Inherits SystemException
[SerializableAttribute] [ComVisibleAttribute(true)] public class ExternalException : SystemException
[SerializableAttribute] [ComVisibleAttribute(true)] public ref class ExternalException : public SystemException
レガシ システムと共通言語ランタイム間で相互運用性を高めるために、ErrorCode プロパティは、エラーを識別するための整数値 (HRESULT) を格納します。ユーザー定義例外を ExternalException から派生したり、ExternalException をユーザー コードによってスローしたりしないでください。代わりに、ExternalException から派生する固有の例外を使用してください。
ExternalException は、0x80004005 の値を持つ HRESULT E_FAIL を使用します。
ExternalException は、Equals メソッドの既定の実装を使用します。この実装では、参照が等値かどうかを判断できます。
ExternalException インスタンスの初期値のリストについては、ExternalException コンストラクタのトピックを参照してください。
System.Exception
System.SystemException
System.Runtime.InteropServices.ExternalException
派生クラス
プラットフォーム
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
ExternalException コンストラクタ ()
アセンブリ: mscorlib (mscorlib.dll 内)
構文
解説
プラットフォーム
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
ExternalException コンストラクタ (String)
アセンブリ: mscorlib (mscorlib.dll 内)
構文
解説
プラットフォーム
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
ExternalException コンストラクタ (String, Exception)
アセンブリ: mscorlib (mscorlib.dll 内)
構文
前の例外の直接の結果としてスローされる例外については、InnerException プロパティに、前の例外への参照が格納されます。InnerException プロパティは、コンストラクタに渡されたものと同じ値を返します。InnerException プロパティによって内部例外値がコンストラクタに渡されなかった場合は、null 参照 (Visual Basic では Nothing) を返します。
ExternalException のインスタンスの初期プロパティ値を次の表に示します。
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
ExternalException コンストラクタ (SerializationInfo, StreamingContext)
アセンブリ: mscorlib (mscorlib.dll 内)
構文
Dim info As SerializationInfo Dim context As StreamingContext Dim instance As New ExternalException(info, context)
解説
プラットフォーム
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
ExternalException コンストラクタ
オーバーロードの一覧
名前 | 説明 |
---|---|
ExternalException () | ExternalException クラスの新しいインスタンスを既定のプロパティを使用して初期化します。 .NET Compact Framework によってサポートされています。 |
ExternalException (String) | ExternalException クラスの新しいインスタンスを、指定したエラー メッセージを使用して初期化します。 .NET Compact Framework によってサポートされています。 |
ExternalException (SerializationInfo, StreamingContext) | シリアル化データから、ExternalException クラスの新しいインスタンスを初期化します。 |
ExternalException (String, Exception) | 指定したエラー メッセージと、この例外の原因である内部例外への参照を使用して、ExternalException クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
ExternalException (String, Int32) | ExternalException クラスの新しいインスタンスを、指定したエラー メッセージとエラーの HRESULT を使用して初期化します。 |
ExternalException コンストラクタ (String, Int32)
アセンブリ: mscorlib (mscorlib.dll 内)
構文
Dim message As String Dim errorCode As Integer Dim instance As New ExternalException(message, errorCode)
プラットフォーム
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
ExternalException プロパティ
パブリック プロパティ
名前 | 説明 | |
---|---|---|
Data | 例外に関する追加のユーザー定義情報を提供するキー/値ペアのコレクションを取得します。 ( Exception から継承されます。) | |
HelpLink | 例外に関連付けられているヘルプ ファイルへのリンクを取得または設定します。 ( Exception から継承されます。) | |
InnerException | 現在の例外を発生させた Exception インスタンスを取得します。 ( Exception から継承されます。) | |
Message | 現在の例外を説明するメッセージを取得します。 ( Exception から継承されます。) | |
Source | エラーの原因となったアプリケーションまたはオブジェクトの名前を取得または設定します。 ( Exception から継承されます。) | |
StackTrace | 現在の例外がスローされたときにコール スタックにあったフレームの文字列形式を取得します。 ( Exception から継承されます。) | |
TargetSite | 現在の例外をスローするメソッドを取得します。 ( Exception から継承されます。) |
参照
ExternalException メソッド
パブリック メソッド
名前 | 説明 | |
---|---|---|
Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) | |
GetBaseException | 派生クラスでオーバーライドされた場合、それ以後に発生する 1 つ以上の例外の主要な原因である Exception を返します。 ( Exception から継承されます。) | |
GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) | |
GetObjectData | 派生クラスでオーバーライドされた場合は、その例外に関する情報を使用して SerializationInfo を設定します。 ( Exception から継承されます。) | |
GetType | 現在のインスタンスのランタイム型を取得します。 ( Exception から継承されます。) | |
ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) | |
ToString | 現在の例外の文字列形式を作成して返します。 ( Exception から継承されます。) |
名前 | 説明 | |
---|---|---|
Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) | |
MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |
ExternalException メンバ
すべての COM 相互運用例外と構造化例外処理 (SEH) 例外の基本的な例外の種類。
ExternalException データ型で公開されるメンバを以下の表に示します。
パブリック コンストラクタ
プロテクト コンストラクタ
パブリック プロパティ
名前 | 説明 | |
---|---|---|
Data | 例外に関する追加のユーザー定義情報を提供するキー/値ペアのコレクションを取得します。(Exception から継承されます。) | |
HelpLink | 例外に関連付けられているヘルプ ファイルへのリンクを取得または設定します。(Exception から継承されます。) | |
InnerException | 現在の例外を発生させた Exception インスタンスを取得します。(Exception から継承されます。) | |
Message | 現在の例外を説明するメッセージを取得します。(Exception から継承されます。) | |
Source | エラーの原因となったアプリケーションまたはオブジェクトの名前を取得または設定します。(Exception から継承されます。) | |
StackTrace | 現在の例外がスローされたときにコール スタックにあったフレームの文字列形式を取得します。(Exception から継承されます。) | |
TargetSite | 現在の例外をスローするメソッドを取得します。(Exception から継承されます。) |
パブリック メソッド
名前 | 説明 | |
---|---|---|
Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) | |
GetBaseException | 派生クラスでオーバーライドされた場合、それ以後に発生する 1 つ以上の例外の主要な原因である Exception を返します。 (Exception から継承されます。) | |
GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) | |
GetObjectData | 派生クラスでオーバーライドされた場合は、その例外に関する情報を使用して SerializationInfo を設定します。 (Exception から継承されます。) | |
GetType | 現在のインスタンスのランタイム型を取得します。 (Exception から継承されます。) | |
ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) | |
ToString | 現在の例外の文字列形式を作成して返します。 (Exception から継承されます。) |
名前 | 説明 | |
---|---|---|
Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) | |
MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
Weblioに収録されているすべての辞書からExternalExceptionを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からExternalException を検索
- ExternalExceptionのページへのリンク