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