Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ArgumentException.ParamName Property

Gets the name of the parameter that causes this exception.

[Visual Basic]
Public Overridable ReadOnly Property ParamName As String
[C#]
public virtual string ParamName {get;}
[C++]
public: __property virtual String* get_ParamName();
[JScript]
public function get ParamName() : String;

Property Value

The parameter name.

Remarks

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

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

ArgumentException Class | ArgumentException Members | System Namespace

Show:
© 2014 Microsoft