Share via


ArgumentException Constructor ()

Initializes a new instance of the ArgumentException class.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public ArgumentException ()

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "An invalid argument was specified." This message takes into account the current system culture.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

ArgumentException Class
ArgumentException Members
System Namespace