Initializes a new instance of the ArgumentException class with a specified message and parameter name.
[Visual Basic] Overloads Public Sub New( _ ByVal message As String, _ ByVal paramName As String _ ) [C#] public ArgumentException( string message, string paramName ); [C++] public: ArgumentException( String* message, String* paramName ); [JScript] public function ArgumentException( message : String, paramName : String );
ArgumentException inherits from the Exception class. This constructor sets the properties of the Exception object as follows:
Property Type | Condition |
---|---|
paramName | The parameter name string. |
Message | The message string. |
ArgumentException Class | ArgumentException Members | System Namespace | ArgumentException Constructor Overload List