ValidationAttribute.ErrorMessageString 屬性
定義
取得當地語系化的驗證錯誤訊息。Gets the localized validation error message.
protected:
property System::String ^ ErrorMessageString { System::String ^ get(); };
protected string ErrorMessageString { get; }
member this.ErrorMessageString : string
Protected ReadOnly Property ErrorMessageString As String
屬性值
當地語系化的驗證錯誤訊息。The localized validation error message.
備註
藉由評估 ErrorMessage 屬性或評估 ErrorMessageResourceType 和屬性來取得錯誤訊息字串 ErrorMessageResourceName 。The error message string is obtained by evaluating the ErrorMessage property or by evaluating the ErrorMessageResourceType and ErrorMessageResourceName properties. 這兩種情況彼此互斥。The two cases are mutually exclusive. 如果您想要顯示當地語系化的錯誤訊息,則會使用第二個案例。The second case is used if you want to display a localized error message.