DataAnnotationsModelValidatorProvider.RegisterAdapterFactory Method (Type, DataAnnotationsModelValidationFactory)
.NET Framework (current version)
Registers an adapter factory for the validation provider.
Assembly: System.Web (in System.Web.dll)
static member RegisterAdapterFactory : attributeType:Type * factory:DataAnnotationsModelValidationFactory -> unit
Parameters
- attributeType
-
Type:
System.Type
The type of the attribute.
- factory
-
Type:
System.Web.ModelBinding.DataAnnotationsModelValidationFactory
The factory that will be used to create the validator object for the specified attribute.
.NET Framework
Available since 4.5
Available since 4.5
Show: