DataAnnotationsModelValidatorProvider Class
Implements the default validator provider.
Assembly: System.Web (in System.Web.dll)
System.Web.ModelBinding::ModelValidatorProvider
System.Web.ModelBinding::AssociatedValidatorProvider
System.Web.ModelBinding::DataAnnotationsModelValidatorProvider
| Name | Description | |
|---|---|---|
![]() | DataAnnotationsModelValidatorProvider() | Initializes a new instance of the DataAnnotationsModelValidatorProvider class. |
| Name | Description | |
|---|---|---|
![]() ![]() | AddImplicitRequiredAttributeForValueTypes | Gets or sets a value that indicates whether non-nullable value types are required. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | GetTypeDescriptor(Type^) | Gets a type descriptor for the specified type.(Inherited from AssociatedValidatorProvider.) |
![]() | GetValidators(ModelMetadata^, ModelBindingExecutionContext^) | Gets the validators for the model using the specified metadata and execution context.(Inherited from AssociatedValidatorProvider.) |
![]() | GetValidators(ModelMetadata^, ModelBindingExecutionContext^, IEnumerable<Attribute^>^) | Gets a collection of validators for the model.(Overrides AssociatedValidatorProvider::GetValidators(ModelMetadata^, ModelBindingExecutionContext^, IEnumerable<Attribute^>^).) |
![]() | MemberwiseClone() | |
![]() ![]() | RegisterAdapter(Type^, Type^) | Registers an adapter for client-side validation. |
![]() ![]() | RegisterAdapterFactory(Type^, DataAnnotationsModelValidationFactory^) | Registers an adapter factory for the validation provider. |
![]() ![]() | RegisterDefaultAdapter(Type^) | Registers the default adapter. |
![]() ![]() | RegisterDefaultAdapterFactory(DataAnnotationsModelValidationFactory^) | Registers the default adapter factory. |
![]() ![]() | RegisterDefaultValidatableObjectAdapter(Type^) | Registers an adapter for default object validation. |
![]() ![]() | RegisterDefaultValidatableObjectAdapterFactory(DataAnnotationsValidatableObjectAdapterFactory^) | Registers an adapter factory for the default object validation provider. |
![]() ![]() | RegisterValidatableObjectAdapter(Type^, Type^) | Registers an adapter for object validation. |
![]() ![]() | RegisterValidatableObjectAdapterFactory(Type^, DataAnnotationsValidatableObjectAdapterFactory^) | Registers an adapter factory for the object validation provider. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
This class is an implementation of ModelValidatorProvider that provides validators for attributes that derive from ValidationAttribute. It also provides validators for types that implement IValidatableObject.
Available since 4.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



