DataAnnotationsModelValidatorProvider.RegisterDefaultAdapterFactory Method (DataAnnotationsModelValidationFactory)
Registers the default adapter factory.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Public Shared Sub RegisterDefaultAdapterFactory ( factory As DataAnnotationsModelValidationFactory )
Parameters
- factory
-
Type:
System.Web.Mvc.DataAnnotationsModelValidationFactory
The factory that will be used to create the ModelValidator object for the default adapter.
This method registers the default adapter factory for types that derive from ValidationAttribute only if the attribute type is not registered with RegisterAdapterFactory(Type, DataAnnotationsModelValidationFactory).
Show: