DataAnnotationsModelValidatorProvider DataAnnotationsModelValidatorProvider DataAnnotationsModelValidatorProvider Class

Definition

Implements the default validation provider for ASP.NET MVC.

public class DataAnnotationsModelValidatorProvider : System.Web.Mvc.AssociatedValidatorProvider
type DataAnnotationsModelValidatorProvider = class
    inherit AssociatedValidatorProvider
Public Class DataAnnotationsModelValidatorProvider
Inherits AssociatedValidatorProvider
Inheritance
DataAnnotationsModelValidatorProviderDataAnnotationsModelValidatorProviderDataAnnotationsModelValidatorProvider

Constructors

DataAnnotationsModelValidatorProvider() DataAnnotationsModelValidatorProvider() DataAnnotationsModelValidatorProvider()

Initializes a new instance of the DataAnnotationsModelValidatorProvider class.

Properties

AddImplicitRequiredAttributeForValueTypes AddImplicitRequiredAttributeForValueTypes AddImplicitRequiredAttributeForValueTypes

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

Methods

GetTypeDescriptor(Type) GetTypeDescriptor(Type) GetTypeDescriptor(Type)

Gets a type descriptor for the specified type.

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

Gets the validators for the model using the metadata and controller context.

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

Gets a list of validators.

RegisterAdapter(Type, Type) RegisterAdapter(Type, Type) RegisterAdapter(Type, Type)

Registers an adapter to provide client-side validation.

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

Registers an adapter factory for the validation provider.

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

Registers the default adapter.

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

Registers the default adapter factory.

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

Registers an adapter to provide default object validation.

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)

Registers an adapter to provide object validation.

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

Registers an adapter factory for the object validation provider.

Applies to