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
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET