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