Share via


ArgumentException.ParamName Property

Gets the name of the parameter that caused this exception.

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

Syntax

public virtual string ParamName { get; }

Property Value

The parameter name.

Remarks

Every instance of the ArgumentException class should carry the name of the parameter that caused this exception. The parameter name should not be localized.

This property is read-only and returns the same value that was passed into the constructor. Overriding methods should be used only to customize the content or formatting of the parameter name.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

ArgumentException Class
ArgumentException Members
System Namespace