Retrieves the name of the parameter that caused this exception to be thrown.
[Visual Basic] Overridable Public ReadOnly Property ParamName As String [C#] public string ParamName {virtual get;} [C++] public: __property virtual String* get_ParamName(); [JScript] public function get ParamName() : String;
Overrides Message.
Every ArgumentException should carry the name of the parameter that causes the exception to be thrown, in addition to a message string that describes the expected values of the parameter.
This is a message string with a new line character followed by the parameter name. If a parameter name was not specified when the object was constructed, the value consists only of the message string.
ArgumentException Class | ArgumentException Members | System Namespace