Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
FormatErrorMessage Method
Collapse the table of content
Expand the table of content

FileExtensionsAttribute.FormatErrorMessage Method

.NET Framework 4.6 and 4.5

Applies formatting to an error message, based on the data field where the error occurred.

Namespace:  System.ComponentModel.DataAnnotations
Assemblies:   System.ComponentModel.Annotations (in System.ComponentModel.Annotations.dll)
  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

Public Overrides Function FormatErrorMessage ( _
	name As String _
) As String


Type: System.String

The name of the field that caused the validation failure.

Return Value

Type: System.String
The formatted error message.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft