MSDN Library

MaxLengthAttribute.FormatErrorMessage Method

Applies formatting to a specified error message. (Overrides <see cref="M:System.ComponentModel.DataAnnotations.ValidationAttribute.FormatErrorMessage(System.String)" />)

Namespace:  System.ComponentModel.DataAnnotations
Assembly:  EntityFramework (in EntityFramework.dll)

public override string FormatErrorMessage(
	string name
)

Parameters

name
Type: System.String
The name to include in the formatted string.

Return Value

Type: System.String
A localized string to describe the maximum acceptable length.
Show:
© 2016 Microsoft