DataAnnotationsModelValidator.GetLocalizedErrorMessage(String) 方法

定义

获取模型的已本地化错误消息。Gets a localized error message for the model.

protected:
 virtual System::String ^ GetLocalizedErrorMessage(System::String ^ errorMessage);
protected virtual string GetLocalizedErrorMessage (string errorMessage);
abstract member GetLocalizedErrorMessage : string -> string
override this.GetLocalizedErrorMessage : string -> string
Protected Overridable Function GetLocalizedErrorMessage (errorMessage As String) As String

参数

errorMessage
String

要本地化的错误消息。The error message to localize.

返回

String

错误消息的已本地化版本。The localized version of the error message.

适用于