A ModelValidator to represent an error. This validator will always throw an exception regardless of the actual model value.
Inheritance Hierarchy
System.Object
  System.Web.Http.Validation.ModelValidator
    System.Web.Http.Validation.Validators.ErrorModelValidator
Namespace:  System.Web.Http.Validation.Validators
Assembly:  System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Class ErrorModelValidator _
    Inherits ModelValidator
'Usage
Dim instance As ErrorModelValidator
public class ErrorModelValidator : ModelValidator
public ref class ErrorModelValidator : public ModelValidator
type ErrorModelValidator =  
    class 
        inherit ModelValidator 
    end
public class ErrorModelValidator extends ModelValidator
The ErrorModelValidator type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .jpeg) | ErrorModelValidator | Initializes a new instance of the ErrorModelValidator class. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .jpeg) | IsRequired | Gets a value that indicates whether a model property is required. (Inherited from ModelValidator.) | 
| .jpeg) | ValidatorProviders | Gets or sets an enumeration of validator providers. (Inherited from ModelValidator.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .jpeg) | Equals | (Inherited from Object.) | 
| .jpeg) | Finalize | (Inherited from Object.) | 
| .jpeg) | GetHashCode | (Inherited from Object.) | 
| .jpeg) | GetType | (Inherited from Object.) | 
| .jpeg) | MemberwiseClone | (Inherited from Object.) | 
| .jpeg) | ToString | (Inherited from Object.) | 
| .jpeg) | Validate | Validates a specified object. (Overrides ModelValidator.Validate(ModelMetadata, Object).) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.