.NET Framework Class Library
DataAnnotationsModelValidatorProvider.RegisterAdapterFactory Method
Registers an adapter factory for the validation provider.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
Visual Basic
Public Shared Sub RegisterAdapterFactory ( _ attributeType As Type, _ factory As DataAnnotationsModelValidationFactory _ )
C#
public static void RegisterAdapterFactory( Type attributeType, DataAnnotationsModelValidationFactory factory )
Visual C++
public: static void RegisterAdapterFactory( Type^ attributeType, DataAnnotationsModelValidationFactory^ 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.
See Also