Share via


ParamName Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the name of the parameter that causes this exception.

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

Syntax

'Declaration
Public Overridable ReadOnly Property ParamName As String
public virtual string ParamName { get; }
public:
virtual property String^ ParamName {
    String^ get ();
}
abstract ParamName : string with get
override ParamName : string with get
function get ParamName () : String

Property Value

Type: System. . :: . .String
The parameter name.

Remarks

Every ArgumentException should carry the name of the parameter that causes this exception.

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 format of the parameter name.

The parameter name should not be translated for localization purposes.

.NET Framework Security

See Also

Reference

ArgumentException Class

System Namespace