ArgumentException コンストラクタ (String, String, Exception)
アセンブリ: mscorlib (mscorlib.dll 内)
構文
Dim message As String Dim paramName As String Dim innerException As Exception Dim instance As New ArgumentException(message, paramName, innerException)
public function ArgumentException ( message : String, paramName : String, innerException : Exception )
このコンストラクタは、新しいインスタンスの Message プロパティを message パラメータの値を使用して初期化します。message パラメータの内容は、ユーザーが理解できる内容にします。このコンストラクタの呼び出し元は、この文字列が現在のシステムのカルチャに合わせてローカライズ済みであることを確認しておく必要があります。
このコンストラクタは、paramName を使用して、新しいインスタンスの ParamName プロパティを初期化します。paramName の内容は、ユーザーが理解できる内容にします。
前の例外の直接の結果としてスローされる例外については、InnerException プロパティに、前の例外への参照が格納されます。InnerException プロパティは、コンストラクタに渡されたものと同じ値を返します。InnerException プロパティによって内部例外値がコンストラクタに渡されなかった場合は、null 参照 (Visual Basic では Nothing) を返します。
ArgumentException のインスタンスの初期プロパティ値を次の表に示します。
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
ArgumentException コンストラクタ (SerializationInfo, StreamingContext)
アセンブリ: mscorlib (mscorlib.dll 内)
構文
Dim info As SerializationInfo Dim context As StreamingContext Dim instance As New ArgumentException(info, context)
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
ArgumentException コンストラクタ (String, String)
アセンブリ: mscorlib (mscorlib.dll 内)
構文
Dim message As String Dim paramName As String Dim instance As New ArgumentException(message, paramName)
このコンストラクタは、新しいインスタンスの Message プロパティを message パラメータの値を使用して初期化します。message パラメータの内容は、ユーザーが理解できる内容にします。このコンストラクタの呼び出し元は、この文字列が現在のシステムのカルチャに合わせてローカライズ済みであることを確認しておく必要があります。
このコンストラクタは、paramName を使用して、新しいインスタンスの ParamName プロパティを初期化します。paramName の内容は、ユーザーが理解できる内容にします。
ArgumentException のインスタンスの初期プロパティ値を次の表に示します。
ArgumentException コンストラクタを呼び出す方法を次のコード例に示します。このコード例は、ArgumentException クラスのトピックで取り上げているコード例の一部分です。
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
ArgumentException コンストラクタ
オーバーロードの一覧
名前 | 説明 |
---|---|
ArgumentException () | ArgumentException クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
ArgumentException (String) | 指定したエラー メッセージを使用して、ArgumentException クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
ArgumentException (SerializationInfo, StreamingContext) | シリアル化したデータを使用して、ArgumentException クラスの新しいインスタンスを初期化します。 |
ArgumentException (String, Exception) | 指定したエラー メッセージと、この例外の原因である内部例外への参照を使用して、ArgumentException クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
ArgumentException (String, String) | エラー メッセージ、およびこの例外の原因である引数の名前を指定して、ArgumentException クラスの新しいインスタンスを初期化します。 .NET Compact Framework によってサポートされています。 |
ArgumentException (String, String, Exception) | エラー メッセージ、パラメータ名、およびこの例外の原因である内部例外への参照を指定して、ArgumentException クラスの新しいインスタンスを初期化します。 |
ArgumentException コンストラクタ (String)
アセンブリ: mscorlib (mscorlib.dll 内)
構文
解説
このコンストラクタは、新しいインスタンスの Message プロパティを初期化し、その値として "無効な引数が指定されました" などのエラーを説明するシステム提供のメッセージを指定します。このメッセージは、システムの現在のカルチャを考慮して指定します。
ArgumentException のインスタンスの初期プロパティ値を次の表に示します。
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
ArgumentException コンストラクタ (String, Exception)
アセンブリ: mscorlib (mscorlib.dll 内)
構文
Dim message As String Dim innerException As Exception Dim instance As New ArgumentException(message, innerException)
このコンストラクタは、新しいインスタンスの Message プロパティを message パラメータの値を使用して初期化します。message パラメータの内容は、ユーザーが理解できる内容にします。このコンストラクタの呼び出し元は、この文字列が現在のシステムのカルチャに合わせてローカライズ済みであることを確認しておく必要があります。
前の例外の直接の結果としてスローされる例外については、InnerException プロパティに、前の例外への参照が格納されます。InnerException プロパティは、コンストラクタに渡されたものと同じ値を返します。InnerException プロパティによって内部例外値がコンストラクタに渡されなかった場合は、null 参照 (Visual Basic では Nothing) を返します。
ArgumentException のインスタンスの初期プロパティ値を次の表に示します。
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
ArgumentException コンストラクタ ()
アセンブリ: mscorlib (mscorlib.dll 内)
構文
解説
このコンストラクタは、新しいインスタンスの Message プロパティを初期化し、その値として "無効な引数が指定されました" などのエラーを説明するシステム提供のメッセージを指定します。このメッセージは、システムの現在のカルチャを考慮して指定します。
ArgumentException のインスタンスの初期プロパティ値を次の表に示します。
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- ArgumentException コンストラクタのページへのリンク