Initializes a new instance of the ArgumentNullException class with the name of the parameter that caused this exception to be thrown.
[Visual Basic] Overloads Public Sub New( _ ByVal parameterName As String _ ) [C#] public ArgumentNullException( string parameterName ); [C++] public: ArgumentNullException( String* parameterName ); [JScript] public function ArgumentNullException( parameterName : String );
ArgumentException 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. |
System.ArgumentException.parameterName | The parameter name string. |
ArgumentNullException Class | ArgumentNullException Members | System Namespace | ArgumentNullException Constructor Overload List