ArgumentException.ParamName ArgumentException.ParamName ArgumentException.ParamName ArgumentException.ParamName Property

定義

取得造成這個例外狀況的參數名稱。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

屬性值

參數名稱。The parameter name.

備註

每個ArgumentException應該執行造成此例外狀況的參數名稱。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.

適用於