DataAnnotationsModelValidatorProvider DataAnnotationsModelValidatorProvider DataAnnotationsModelValidatorProvider DataAnnotationsModelValidatorProvider Class

Definition

Implements the default validator provider.

public ref class DataAnnotationsModelValidatorProvider : System::Web::ModelBinding::AssociatedValidatorProvider
public class DataAnnotationsModelValidatorProvider : System.Web.ModelBinding.AssociatedValidatorProvider
type DataAnnotationsModelValidatorProvider = class
    inherit AssociatedValidatorProvider
Public Class DataAnnotationsModelValidatorProvider
Inherits AssociatedValidatorProvider
Inheritance
DataAnnotationsModelValidatorProviderDataAnnotationsModelValidatorProviderDataAnnotationsModelValidatorProviderDataAnnotationsModelValidatorProvider

Remarks

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.

Constructors

DataAnnotationsModelValidatorProvider() DataAnnotationsModelValidatorProvider() DataAnnotationsModelValidatorProvider() DataAnnotationsModelValidatorProvider()

Initializes a new instance of the DataAnnotationsModelValidatorProvider class.

Properties

AddImplicitRequiredAttributeForValueTypes AddImplicitRequiredAttributeForValueTypes AddImplicitRequiredAttributeForValueTypes AddImplicitRequiredAttributeForValueTypes

Gets or sets a value that indicates whether non-nullable value types are required.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetTypeDescriptor(Type) GetTypeDescriptor(Type) GetTypeDescriptor(Type) GetTypeDescriptor(Type)

Gets a type descriptor for the specified type.

(Inherited from AssociatedValidatorProvider)
GetValidators(ModelMetadata, ModelBindingExecutionContext) GetValidators(ModelMetadata, ModelBindingExecutionContext) GetValidators(ModelMetadata, ModelBindingExecutionContext) GetValidators(ModelMetadata, ModelBindingExecutionContext)

Gets the validators for the model using the specified metadata and execution context.

(Inherited from AssociatedValidatorProvider)
GetValidators(ModelMetadata, ModelBindingExecutionContext, IEnumerable<Attribute>) GetValidators(ModelMetadata, ModelBindingExecutionContext, IEnumerable<Attribute>) GetValidators(ModelMetadata, ModelBindingExecutionContext, IEnumerable<Attribute>) GetValidators(ModelMetadata, ModelBindingExecutionContext, IEnumerable<Attribute>)

Gets a collection of validators for the model.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
RegisterAdapter(Type, Type) RegisterAdapter(Type, Type) RegisterAdapter(Type, Type) RegisterAdapter(Type, Type)

Registers an adapter for client-side validation.

RegisterAdapterFactory(Type, DataAnnotationsModelValidationFactory) RegisterAdapterFactory(Type, DataAnnotationsModelValidationFactory) RegisterAdapterFactory(Type, DataAnnotationsModelValidationFactory) RegisterAdapterFactory(Type, DataAnnotationsModelValidationFactory)

Registers an adapter factory for the validation provider.

RegisterDefaultAdapter(Type) RegisterDefaultAdapter(Type) RegisterDefaultAdapter(Type) RegisterDefaultAdapter(Type)

Registers the default adapter.

RegisterDefaultAdapterFactory(DataAnnotationsModelValidationFactory) RegisterDefaultAdapterFactory(DataAnnotationsModelValidationFactory) RegisterDefaultAdapterFactory(DataAnnotationsModelValidationFactory) RegisterDefaultAdapterFactory(DataAnnotationsModelValidationFactory)

Registers the default adapter factory.

RegisterDefaultValidatableObjectAdapter(Type) RegisterDefaultValidatableObjectAdapter(Type) RegisterDefaultValidatableObjectAdapter(Type) RegisterDefaultValidatableObjectAdapter(Type)

Registers an adapter for default object validation.

RegisterDefaultValidatableObjectAdapterFactory(DataAnnotationsValidatableObjectAdapterFactory) RegisterDefaultValidatableObjectAdapterFactory(DataAnnotationsValidatableObjectAdapterFactory) RegisterDefaultValidatableObjectAdapterFactory(DataAnnotationsValidatableObjectAdapterFactory) RegisterDefaultValidatableObjectAdapterFactory(DataAnnotationsValidatableObjectAdapterFactory)

Registers an adapter factory for the default object validation provider.

RegisterValidatableObjectAdapter(Type, Type) RegisterValidatableObjectAdapter(Type, Type) RegisterValidatableObjectAdapter(Type, Type) RegisterValidatableObjectAdapter(Type, Type)

Registers an adapter for object validation.

RegisterValidatableObjectAdapterFactory(Type, DataAnnotationsValidatableObjectAdapterFactory) RegisterValidatableObjectAdapterFactory(Type, DataAnnotationsValidatableObjectAdapterFactory) RegisterValidatableObjectAdapterFactory(Type, DataAnnotationsValidatableObjectAdapterFactory) RegisterValidatableObjectAdapterFactory(Type, DataAnnotationsValidatableObjectAdapterFactory)

Registers an adapter factory for the object validation provider.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to