Initializes a new instance of the ArgumentOutOfRangeException class with a specified message and a parameter name.
[Visual Basic] Overloads Public Sub New( _ ByVal parameterName As String, _ ByVal message As String _ ) [C#] public ArgumentOutOfRangeException( string parameterName, string message ); [C++] public: ArgumentOutOfRangeException( String* parameterName, String* message ); [JScript] public function ArgumentOutOfRangeException( parameterName : String, message : 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 message string. |
ParamName | The parameter name string. |
ArgumentOutOfRangeException Class | ArgumentOutOfRangeException Members | System Namespace | ArgumentOutOfRangeException Constructor Overload List