ArgumentException Class

The exception that is thrown when one of the arguments provided to a method is not valid.

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

Syntax

[SerializableAttribute]
public class ArgumentException : SystemException

Remarks

An ArgumentException exception is thrown when a method is called and at least one of the passed arguments does not meet the parameter specification for that method. Every instance of the ArgumentException class should carry a meaningful error message describing the invalid argument, as well as the expected range of values for that argument.

Version Information

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

See Also

Reference

ArgumentException Members
System Namespace