ModelValidator Class
Provides a base class for implementing validation logic.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
System.Web.Mvc::ModelValidator
System.Web.Mvc::DataAnnotationsModelValidator
System.Web.Mvc::ValidatableObjectAdapter
| Name | Description | |
|---|---|---|
![]() | ModelValidator(ModelMetadata^, ControllerContext^) | Called from constructors in derived classes to initialize the ModelValidator class. |
| Name | Description | |
|---|---|---|
![]() | ControllerContext | Gets the controller context. |
![]() | IsRequired | Gets or sets a value that indicates whether a model property is required. |
![]() | Metadata | Gets the metadata for the model validator. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetClientValidationRules() | When implemented in a derived class, returns metadata for client validation. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() ![]() | GetModelValidator(ModelMetadata^, ControllerContext^) | Returns a composite model validator for the model. |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
![]() | Validate(Object^) | When implemented in a derived class, validates the object. |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




