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