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
public virtual string ParamName {get;}
public: __property virtual String* get_ParamName();
public function get ParamName() : String;

Property Value

The parameter name.


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.


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

© 2014 Microsoft