Export (0) Print
Expand All

ArgumentNullException Constructor

.NET Framework 1.1

Initializes a new instance of the ArgumentNullException class.

Overload List

Initializes a new instance of the ArgumentNullException class.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New()
[C#] public ArgumentNullException();
[C++] public: ArgumentNullException();
[JScript] public function ArgumentNullException();

Initializes a new instance of the ArgumentNullException class with the name of the parameter that causes this exception.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String)
[C#] public ArgumentNullException(string);
[C++] public: ArgumentNullException(String*);
[JScript] public function ArgumentNullException(String);

Initializes a new instance of the ArgumentNullException class with serialized data.

[Visual Basic] Protected Sub New(SerializationInfo, StreamingContext)
[C#] protected ArgumentNullException(SerializationInfo, StreamingContext);
[C++] protected: ArgumentNullException(SerializationInfo*, StreamingContext);
[JScript] protected function ArgumentNullException(SerializationInfo, StreamingContext);

Initializes an instance of the ArgumentNullException class with a specified error message and the name of the parameter that causes this exception.

Supported by the .NET Compact Framework.

[Visual Basic] Public Sub New(String, String)
[C#] public ArgumentNullException(string, string);
[C++] public: ArgumentNullException(String*, String*);
[JScript] public function ArgumentNullException(String, String);

See Also

ArgumentNullException Class | ArgumentNullException Members | System Namespace

Show:
© 2015 Microsoft