DataAnnotationsModelValidatorProvider.RegisterDefaultAdapter Method

Registers the default adapter.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

static member RegisterDefaultAdapter : 
        adapterType:Type -> unit

Parameters

adapterType
Type: System.Type

The type of the adapter.

The method registers the default adapter for types that derive from ValidationAttribute only if the attribute type is not registered by using RegisterAdapterFactory(Type, DataAnnotationsModelValidationFactory).

Show: