Mono Class Library: System.ArgumentException Overview | Members

System.ArgumentException.ParamName Property

Gets the name of the parameter that caused the current Exception. [Edit]

public virtual string ParamName { get; }

Value

A string that contains the name of the parameter that caused the current Exception, or null if no value was specified to the constructor for the current instance. [Edit]

Remarks

This property is read-only.

Operation
The ArgumentException.ParamName property returns the same value as was passed into the constructor.

Note to Inheritors
Override the ArgumentException.ParamName property to customize the content or format of the parameter name.

Usage
Use this property to retrieve the name of the invalid parameter.

[Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0