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