ValidationAttribute.ErrorMessageString 屬性

定義

取得當地語系化的驗證錯誤訊息。

protected:
 property System::String ^ ErrorMessageString { System::String ^ get(); };
protected string ErrorMessageString { get; }
member this.ErrorMessageString : string
Protected ReadOnly Property ErrorMessageString As String

屬性值

當地語系化的驗證錯誤訊息。

備註

藉由評估 屬性或評估 ErrorMessageErrorMessageResourceTypeErrorMessageResourceName 屬性,可取得錯誤訊息字串。 這兩個案例互斥。 如果您想要顯示本地化的錯誤訊息,則會使用第二個案例。

適用於