ErrorModelValidator Class
A ModelValidator to represent an error. This validator will always throw an exception regardless of the actual model value.
Assembly: System.Web.Http (in System.Web.Http.dll)
System.Web.Http.Validation::ModelValidator
System.Web.Http.Validation.Validators::ErrorModelValidator
| Name | Description | |
|---|---|---|
![]() | ErrorModelValidator(IEnumerable<ModelValidatorProvider^>^, String^) | Initializes a new instance of the ErrorModelValidator class. |
| Name | Description | |
|---|---|---|
![]() | IsRequired | Gets a value that indicates whether a model property is required.(Inherited from ModelValidator.) |
![]() | ValidatorProviders | Gets or sets an enumeration of validator providers.(Inherited from ModelValidator.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
![]() | Validate(ModelMetadata^, Object^) | Validates a specified object.(Overrides ModelValidator::Validate(ModelMetadata^, 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.



