IValidationMessageFormatter Interface

Definition

When implemented by a custom attribute derived from ValidationAttribute it is used by the validation localization pipeline to produce fully formatted messages from localized templates that contain positional placeholders for the attribute-specific arguments.

public interface class IValidationMessageFormatter
public interface IValidationMessageFormatter
type IValidationMessageFormatter = interface
Public Interface IValidationMessageFormatter

Methods

Name Description
FormatMessage(CultureInfo, String, String)

Formats the specified messageTemplate by substituting attribute-specific arguments alongside the displayName.

Applies to