AcceptAttribute.FormatErrorMessage Method (String)
Applies formatting to an error message based on the data field where the acceptance error occurred.
Namespace: Microsoft.Web.Mvc
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
public override string FormatErrorMessage(
string name
)
public:
virtual String^ FormatErrorMessage(
String^ name
) override
override FormatErrorMessage :
name:string -> string
Public Overrides Function FormatErrorMessage (
name As String
) As String
Parameters
name
Type: System.StringThe name of the field that caused the validation failure.
Return Value
Type: System.String
The formatted error message.
See Also
AcceptAttribute Class
Microsoft.Web.Mvc Namespace
Return to top