Export (0) Print
Expand All

ValidationAttribute.ErrorMessageResourceType Property

Gets or sets the resource type to use for error-message lookup if validation fails.

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

public Type ErrorMessageResourceType { get; set; }

Property Value

Type: System.Type
The type of error message that is associated with a validation control.

You use the ErrorMessageResourceType property together with the ErrorMessageResourceName property in to provide a localized error message.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft