RemoteAttribute.FormatErrorMessage Method (String)

 

Formats the error message that is displayed when validation fails.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.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.String

    A name to display with the error message.

Return Value

Type: System.String

A formatted error message.

See Also

RemoteAttribute Class
System.Web.Mvc Namespace

Return to top