ArgumentException.ParamName Proprietà
Definizione
Ottiene il nome del parametro che ha causato questa eccezione.Gets the name of the parameter that causes this exception.
public:
virtual property System::String ^ ParamName { System::String ^ get(); };
public virtual string ParamName { get; }
member this.ParamName : string
Public Overridable ReadOnly Property ParamName As String
Valore della proprietà
Nome del parametro.The parameter name.
Commenti
Ogni ArgumentException deve contenere il nome del parametro che genera questa eccezione.Every ArgumentException should carry the name of the parameter that causes this exception.
Questa proprietà è di sola lettura e restituisce lo stesso valore passato al costruttore.This property is read-only, and returns the same value as was passed into the constructor. I metodi di override devono essere usati esclusivamente per personalizzare il formato del nome del parametro.Overriding methods should be used solely to customize the format of the parameter name.
Il nome del parametro non deve essere convertito per finalità di localizzazione.The parameter name should not be translated for localization purposes.