TargetParameterCountException コンストラクター

定義

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

オーバーロード

TargetParameterCountException()

空のメッセージ文字列および例外の主要原因を使用して、TargetParameterCountException クラスの新しいインスタンスを初期化します。

TargetParameterCountException(String)

メッセージ文字列を特定のメッセージに設定し、主要原因となる例外を指定して、TargetParameterCountException クラスの新しいインスタンスを初期化します。

TargetParameterCountException(String, Exception)

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

TargetParameterCountException()

ソース:
TargetParameterCountException.cs
ソース:
TargetParameterCountException.cs
ソース:
TargetParameterCountException.cs

空のメッセージ文字列および例外の主要原因を使用して、TargetParameterCountException クラスの新しいインスタンスを初期化します。

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

注釈

TargetParameterCountException は、Exception から継承されます。 このコンストラクターは、次の表に示すように Exception オブジェクトのプロパティを設定します。

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

適用対象

TargetParameterCountException(String)

ソース:
TargetParameterCountException.cs
ソース:
TargetParameterCountException.cs
ソース:
TargetParameterCountException.cs

メッセージ文字列を特定のメッセージに設定し、主要原因となる例外を指定して、TargetParameterCountException クラスの新しいインスタンスを初期化します。

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

パラメーター

message
String

この例外がスローされた原因を説明する文字列。String

注釈

TargetParameterCountException は、Exception から継承されます。 このコンストラクターは、次の表に Exception 示すように、 オブジェクトのプロパティを設定します。

プロパティ [値]
InnerException null
Message メッセージ文字列。

適用対象

TargetParameterCountException(String, Exception)

ソース:
TargetParameterCountException.cs
ソース:
TargetParameterCountException.cs
ソース:
TargetParameterCountException.cs

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

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

パラメーター

message
String

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

inner
Exception

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

注釈

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

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

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

こちらもご覧ください

適用対象