System.ComponentModel.DataAnnotations.FileExtensionsAttribute.FormatErrorMessage C# (CSharp) Метод

FormatErrorMessage() публичный Метод

Applies formatting to an error message, based on the data field where the error occurred.
public FormatErrorMessage ( string name ) : string
name string The name to include in the formatted message.
Результат string
        public override string FormatErrorMessage(string name)
        {
            return CultureInfo.CurrentCulture.Format(this.ErrorMessage, name, Extensions);
        }