InvalidModelValidatorProvider Class

An implementation of ModelValidatorProvider which provides validators that throw exceptions when the model is invalid.

Inheritance Hierarchy

System.Object
  System.Web.Http.Validation.ModelValidatorProvider
    System.Web.Http.Validation.Providers.AssociatedValidatorProvider
      System.Web.Http.Validation.Providers.InvalidModelValidatorProvider

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

Syntax

'Declaration
Public Class InvalidModelValidatorProvider _
    Inherits AssociatedValidatorProvider
'Usage
Dim instance As InvalidModelValidatorProvider
public class InvalidModelValidatorProvider : AssociatedValidatorProvider
public ref class InvalidModelValidatorProvider : public AssociatedValidatorProvider
type InvalidModelValidatorProvider =  
    class 
        inherit AssociatedValidatorProvider 
    end
public class InvalidModelValidatorProvider extends AssociatedValidatorProvider

The InvalidModelValidatorProvider type exposes the following members.

Constructors

  Name Description
Public method InvalidModelValidatorProvider Initializes a new instance of the InvalidModelValidatorProvider class.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method GetTypeDescriptor Gets a type descriptor for the specified type. (Inherited from AssociatedValidatorProvider.)
Public method GetValidators(ModelMetadata, IEnumerable<ModelValidatorProvider>) Gets the validators for the model using the metadata and validator providers. (Inherited from AssociatedValidatorProvider.)
Protected method GetValidators(ModelMetadata, IEnumerable<ModelValidatorProvider>, IEnumerable<Attribute>) Gets a list of validators associated with this InvalidModelValidatorProvider. (Overrides AssociatedValidatorProvider.GetValidators(ModelMetadata, IEnumerable<ModelValidatorProvider>, IEnumerable<Attribute>).)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from 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.

See Also

Reference

System.Web.Http.Validation.Providers Namespace