FileExtensionsAttribute.FormatErrorMessage Method (String)

 

Formats the error message to display if the file extensions validation fails.

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.String

    The name of the field that caused the validation failure.

Return Value

Type: System.String

The formatted error message.

See Also

FileExtensionsAttribute Class
Microsoft.Web.Mvc Namespace

Return to top