Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ArgumentException Constructor

.NET Framework 1.1

Initializes a new instance of the ArgumentException class.

Overload List

Initializes a new instance of the ArgumentException class.

Supported by the .NET Compact Framework.

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

Initializes a new instance of the ArgumentException class with a specified error message.

Supported by the .NET Compact Framework.

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

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

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

Initializes a new instance of the ArgumentException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Supported by the .NET Compact Framework.

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

Initializes a new instance of the ArgumentException 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 ArgumentException(string, string);
[C++] public: ArgumentException(String*, String*);
[JScript] public function ArgumentException(String, String);

Initializes a new instance of the ArgumentException class with a specified error message, the parameter name, and a reference to the inner exception that is the cause of this exception.

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

See Also

ArgumentException Class | ArgumentException Members | System Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.