DataAnnotationsModelValidator.GetLocalizedErrorMessage(String) 方法

定义

获取模型的已本地化错误消息。

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

要本地化的错误消息。

返回

String

错误消息的已本地化版本。

适用于