System.Web.Http.Validation.Providers Namespace
Contains provider and factory classes related to model validation.
Classes
Class | Description | |
---|---|---|
AssociatedValidatorProvider | Provides an abstract class for classes that implement a validation provider. | |
DataAnnotationsModelValidatorProvider | Represents an implementation of ModelValidatorProvider which providers validators for attributes which derive from ValidationAttribute. It also provides a validator for types which implement IValidatableObject. To support client side validation, you can either register adapters through the static methods on this class, or by having your validation attributes implement IClientValidatable. The logic to support IClientValidatable is implemented in DataAnnotationsModelValidator. | |
DataMemberModelValidatorProvider | Represents a validator provider for data member model. | |
InvalidModelValidatorProvider | An implementation of ModelValidatorProvider which provides validators that throw exceptions when the model is invalid. | |
RequiredMemberModelValidatorProvider | Represents the provider for the required member model validator. |
Delegates
Delegate | Description | |
---|---|---|
DataAnnotationsModelValidationFactory | Represents the method that creates a DataAnnotationsModelValidatorProvider instance. | |
DataAnnotationsValidatableObjectAdapterFactory | Provides a factory for validators that are based on IValidatableObject. |