ArgumentException.ParamName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the name of the parameter that causes this exception.
public:
virtual property System::String ^ ParamName { System::String ^ get(); };
public virtual string ParamName { get; }
public virtual string? ParamName { get; }
member this.ParamName : string
Public Overridable ReadOnly Property ParamName As String
Property Value
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.
Applies to
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre