CustomValidationAttribute.FormatErrorMessage Method (String)

 

Formats a validation error message.

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

public override string FormatErrorMessage(
	string name
)

Parameters

name
Type: System.String

The name to include in the formatted message.

Return Value

Type: System.String

An instance of the formatted error message.

The error message is formatted at run time to include the name value that is passed to this method.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Return to top
Show: