ContextMarshalException コンストラクター

定義

ContextMarshalException クラスの新しいインスタンスを初期化します。

オーバーロード

ContextMarshalException()

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

ContextMarshalException(String)

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

ContextMarshalException(SerializationInfo, StreamingContext)
古い.

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

ContextMarshalException(String, Exception)

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

ContextMarshalException()

Source:
Context.cs
Source:
Context.cs
Source:
Context.cs

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

public:
 ContextMarshalException();
public ContextMarshalException ();
Public Sub New ()

注釈

次の表に、ContextMarshalException のインスタンスに対するプロパティの初期値を示します。

プロパティ
InnerException null.
Message 空の文字列 ("")。

適用対象

ContextMarshalException(String)

Source:
Context.cs
Source:
Context.cs
Source:
Context.cs

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

public:
 ContextMarshalException(System::String ^ message);
public ContextMarshalException (string? message);
public ContextMarshalException (string message);
new ContextMarshalException : string -> ContextMarshalException
Public Sub New (message As String)

パラメーター

message
String

例外の原因を説明するエラー メッセージ。

注釈

次の表に、ContextMarshalException のインスタンスに対するプロパティの初期値を示します。

プロパティ
InnerException null.
Message エラー メッセージ文字列。

適用対象

ContextMarshalException(SerializationInfo, StreamingContext)

Source:
Context.cs
Source:
Context.cs
Source:
Context.cs

注意事項

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

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

protected:
 ContextMarshalException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ContextMarshalException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected ContextMarshalException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new ContextMarshalException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> ContextMarshalException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new ContextMarshalException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> ContextMarshalException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

パラメーター

info
SerializationInfo

スローされている例外に関するシリアル化済みオブジェクト データを保持している SerializationInfo

context
StreamingContext

転送元または転送先についてのコンテキスト情報を含む StreamingContext です。

属性

適用対象

ContextMarshalException(String, Exception)

Source:
Context.cs
Source:
Context.cs
Source:
Context.cs

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

public:
 ContextMarshalException(System::String ^ message, Exception ^ inner);
public ContextMarshalException (string? message, Exception? inner);
public ContextMarshalException (string message, Exception inner);
new ContextMarshalException : string * Exception -> ContextMarshalException
Public Sub New (message As String, inner As Exception)

パラメーター

message
String

例外の原因を説明するエラー メッセージ。

inner
Exception

現在の例外の原因となった例外。 inner パラメーターが null でない場合は、内部例外を処理する catch ブロックで現在の例外が発生します。

注釈

前の例外の直接の結果としてスローされる例外については、InnerException プロパティに、前の例外への参照を含める必要があります。 InnerException プロパティは、コンストラクターに渡されるのと同じ値を返します。または、InnerException プロパティがコンストラクターに内部例外値を提供しない場合には null を返します。

次の表に、ContextMarshalException のインスタンスに対するプロパティの初期値を示します。

プロパティ [値]
InnerException 内部例外の参照。
Message エラー メッセージ文字列。

適用対象