ErrorModelValidator Class

 

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

Namespace:   System.Web.Http.Validation.Validators
Assembly:  System.Web.Http (in System.Web.Http.dll)

System::Object
  System.Web.Http.Validation::ModelValidator
    System.Web.Http.Validation.Validators::ErrorModelValidator

public ref class ErrorModelValidator : ModelValidator

NameDescription
System_CAPS_pubmethodErrorModelValidator(IEnumerable<ModelValidatorProvider^>^, String^)

Initializes a new instance of the ErrorModelValidator class.

NameDescription
System_CAPS_pubpropertyIsRequired

Gets a value that indicates whether a model property is required.(Inherited from ModelValidator.)

System_CAPS_protpropertyValidatorProviders

Gets or sets an enumeration of validator providers.(Inherited from ModelValidator.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodValidate(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.

Return to top
Show: