Export (0) Print
Expand All

ErrorModelValidator Class

A ModelValidator to represent an error. This validator will always throw an exception regardless of the actual model value.

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)

public class ErrorModelValidator : ModelValidator

The ErrorModelValidator type exposes the following members.

  NameDescription
Public methodErrorModelValidatorInitializes a new instance of the ErrorModelValidator class.
Top

  NameDescription
Public propertyIsRequiredGets a value that indicates whether a model property is required. (Inherited from ModelValidator.)
Protected propertyValidatorProvidersGets or sets an enumeration of validator providers. (Inherited from ModelValidator.)
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodValidateValidates a specified object. (Overrides ModelValidator.Validate(ModelMetadata, Object).)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft