Export (0) Print
Expand All

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:
© 2015 Microsoft