DataAnnotationsModelValidator.GetLocalizedErrorMessage(String) Method

Definition

Gets a localized error message for the model.

C#
protected virtual string GetLocalizedErrorMessage(string errorMessage);

Parameters

errorMessage
String

The error message to localize.

Returns

The localized version of the error message.

Applies to

Product Versions
.NET Framework 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1