DataAnnotationsModelValidator.GetLocalizedErrorMessage(String) Metod

Definition

Hämtar ett lokaliserat felmeddelande för modellen.

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

Parametrar

errorMessage
String

Felmeddelandet som ska lokaliseras.

Returer

Den lokaliserade versionen av felmeddelandet.

Gäller för