ContextMarshalException クラス

定義

注意事項

ContextMarshalException is obsolete.

コンテキスト境界を越えてオブジェクトをマーシャリングしようとすると失敗した場合にスローされる例外。

public ref class ContextMarshalException : SystemException
public class ContextMarshalException : SystemException
[System.Serializable]
public class ContextMarshalException : SystemException
[System.Serializable]
[System.Obsolete("ContextMarshalException is obsolete.")]
[System.Runtime.InteropServices.ComVisible(true)]
public class ContextMarshalException : SystemException
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class ContextMarshalException : SystemException
type ContextMarshalException = class
    inherit SystemException
[<System.Serializable>]
type ContextMarshalException = class
    inherit SystemException
[<System.Serializable>]
[<System.Obsolete("ContextMarshalException is obsolete.")>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ContextMarshalException = class
    inherit SystemException
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ContextMarshalException = class
    inherit SystemException
Public Class ContextMarshalException
Inherits SystemException
継承
ContextMarshalException
属性

注釈

オブジェクトは、値または参照によってマーシャリングできます。 コンテキスト境界を介してマーシャリングできない型を渡そうとすると、 ContextMarshalExceptionが発生します。

ContextMarshalException では、値が 0x80131504L の HRESULT COR_E_CONTEXTMARSHALが使用されます。

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

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

コンストラクター

名前 説明
ContextMarshalException()
古い.

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

ContextMarshalException(SerializationInfo, StreamingContext)
古い.

シリアル化されたデータを使用して、 ContextMarshalException クラスの新しいインスタンスを初期化します。

ContextMarshalException(String, Exception)
古い.

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

ContextMarshalException(String)
古い.

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

プロパティ

名前 説明
Data
古い.

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

(継承元 Exception)
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()
古い.

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

(継承元 Exception)

イベント

名前 説明
SerializeObjectState
古い.

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

(継承元 Exception)

適用対象

こちらもご覧ください