DataAnnotationsModelValidator Properties

The DataAnnotationsModelValidator type exposes the following members.

  Name Description
Protected property Attribute Gets the validation attribute for the model validator.
Protected property ControllerContext Gets the controller context. (Inherited from ModelValidator.)
Protected property ErrorMessage Gets the error message for the validation failure.
Public property IsRequired Gets a value that indicates whether model validation is required. (Overrides ModelValidator.IsRequired.)
Protected property Metadata Gets the metadata for the model validator. (Inherited from ModelValidator.)