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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.