Export (0) Print
Expand All

DataAnnotationsModelValidator<TAttribute> Properties

.NET Framework 4.5

The DataAnnotationsModelValidator<TAttribute> type exposes the following members.

  Name Description
Protected property Attribute Gets the validation attribute.
Protected property ErrorMessage Gets the error message for a validation failure. (Inherited from DataAnnotationsModelValidator.)
Public property IsRequired Gets a value that indicates whether the model is required (that is, whether the validation attribute in the Attribute property is a RequiredAttribute attribute). (Inherited from DataAnnotationsModelValidator.)
Protected property Metadata When implemented in a derived class, gets the metadata for the model validator. (Inherited from ModelValidator.)
Protected property ModelBindingExecutionContext When implemented in a derived class, gets the execution context. (Inherited from ModelValidator.)
© 2014 Microsoft