ExternalException クラス

定義

すべての COM 相互運用例外と構造化例外処理 (SEH) 例外の基本的な例外の種類。

public ref class ExternalException : SystemException
public class ExternalException : SystemException
[System.Serializable]
public class ExternalException : SystemException
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class ExternalException : SystemException
type ExternalException = class
    inherit SystemException
[<System.Serializable>]
type ExternalException = class
    inherit SystemException
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ExternalException = class
    inherit SystemException
Public Class ExternalException
Inherits SystemException
継承
ExternalException
派生
属性

注釈

レガシ システムと共通言語ランタイム間の相互運用性を高めるために、 ErrorCode このプロパティにはエラーを識別する整数値 (HRESULT) が格納されます。 ユーザー定義の例外の派生元 ExternalExceptionは決してありません。また、 ExternalException ユーザー コードによってスローされることもありません。 代わりに、派生 ExternalException 元の特定の例外を使用します。

ExternalException は、0x80004005値を持つ HRESULT E_FAILを使用します。

ExternalException では、参照の等価性をサポートする既定 Equals の実装が使用されます。

インスタンス ExternalExceptionの初期値の一覧については、コンストラクターを ExternalException 参照してください。

コンストラクター

ExternalException()

ExternalException クラスの新しいインスタンスを、既定のプロパティを使用して初期化します。

ExternalException(SerializationInfo, StreamingContext)

シリアル化データから、ExternalException クラスの新しいインスタンスを初期化します。

ExternalException(String)

指定したエラー メッセージを使用して、ExternalException クラスの新しいインスタンスを初期化します。

ExternalException(String, Exception)

指定したエラー メッセージおよびこの例外の原因となった内部例外への参照を使用して、ExternalException クラスの新しいインスタンスを初期化します。

ExternalException(String, Int32)

ExternalException クラスの新しいインスタンスを、指定したエラー メッセージとエラーの HRESULT を使用して初期化します。

プロパティ

Data

例外に関する追加のユーザー定義情報を提供する、キーと値のペアのコレクションを取得します。

(継承元 Exception)
ErrorCode

エラーの HRESULT を取得します。

HelpLink

この例外に関連付けられているヘルプ ファイルへのリンクを取得または設定します。

(継承元 Exception)
HResult

特定の例外に割り当てられているコード化数値である HRESULT を取得または設定します。

(継承元 Exception)
InnerException

現在の例外の原因となる Exception インスタンスを取得します。

(継承元 Exception)
Message

現在の例外を説明するメッセージを取得します。

(継承元 Exception)
Source

エラーの原因となるアプリケーションまたはオブジェクトの名前を取得または設定します。

(継承元 Exception)
StackTrace

呼び出し履歴で直前のフレームの文字列形式を取得します。

(継承元 Exception)
TargetSite

現在の例外がスローされたメソッドを取得します。

(継承元 Exception)

メソッド

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetBaseException()

派生クラスでオーバーライドされた場合、それ以後に発生する 1 つ以上の例外の根本原因である Exception を返します。

(継承元 Exception)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetObjectData(SerializationInfo, StreamingContext)

派生クラスでオーバーライドされた場合は、その例外に関する情報を使用して SerializationInfo を設定します。

(継承元 Exception)
GetType()

現在のインスタンスのランタイム型を取得します。

(継承元 Exception)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()

エラーの HRESULT が格納された文字列を返します。

ToString()

現在の例外の文字列形式を作成して返します。

(継承元 Exception)

events

SerializeObjectState
互換性のために残されています。

例外がシリアル化され、例外に関するシリアル化されたデータを含む例外状態オブジェクトが作成されたときに発生します。

(継承元 Exception)

適用対象

こちらもご覧ください