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
DataAnnotationsModelValidatorProvider

Constructors

DataAnnotationsModelValidatorProvider()

Initializes a new instance of the DataAnnotationsModelValidatorProvider class.

Properties

AddImplicitRequiredAttributeForValueTypes

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

Methods

GetTypeDescriptor(Type)

Gets a type descriptor for the specified type.

(Inherited from AssociatedValidatorProvider)
GetValidators(ModelMetadata, ControllerContext)

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

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

Gets a list of validators.

RegisterAdapter(Type, Type)

Registers an adapter to provide 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 to provide default object validation.

RegisterDefaultValidatableObjectAdapterFactory(DataAnnotationsValidatableObjectAdapterFactory)

Registers an adapter factory for the default object validation provider.

RegisterValidatableObjectAdapter(Type, Type)

Registers an adapter to provide object validation.

RegisterValidatableObjectAdapterFactory(Type, DataAnnotationsValidatableObjectAdapterFactory)

Registers an adapter factory for the object validation provider.

Applies to