DataAnnotationsModelValidatorProvider.RegisterAdapterFactory Method
Registers an adapter factory for the validation provider.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Shared Sub RegisterAdapterFactory ( _ attributeType As Type, _ factory As DataAnnotationsModelValidationFactory _ ) 'Usage Dim attributeType As Type Dim factory As DataAnnotationsModelValidationFactory DataAnnotationsModelValidatorProvider.RegisterAdapterFactory(attributeType, _ factory)
Parameters
- attributeType
- Type: System.Type
The type of the attribute.
- factory
- Type: System.Web.Mvc.DataAnnotationsModelValidationFactory
The factory that will be used to create the ModelValidator object for the specified attribute.
Show: