次の方法で共有


TargetParameterCountException コンストラクター

定義

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

オーバーロード

名前 説明
TargetParameterCountException()

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

TargetParameterCountException(String)

指定されたメッセージと根本原因の例外にメッセージ文字列を設定して、 TargetParameterCountException クラスの新しいインスタンスを初期化します。

TargetParameterCountException(String, Exception)

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

TargetParameterCountException()

ソース:
TargetParameterCountException.cs
ソース:
TargetParameterCountException.cs
ソース:
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.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.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 プロパティは、コンストラクターに渡されるのと同じ値を返します。または、null プロパティがコンストラクターに内部例外値を提供しない場合はInnerExceptionします。

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

財産 価値
InnerException 内部例外参照。
Message エラー メッセージ文字列。

こちらもご覧ください

適用対象