Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataAnnotationsModelValidatorProvider.RegisterAdapterFactory Method (Type, DataAnnotationsModelValidationFactory)


Registers an adapter factory for the validation provider.

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

Public Shared Sub RegisterAdapterFactory (
	attributeType As Type,
	factory As DataAnnotationsModelValidationFactory


Type: System.Type

The type of the attribute.

Type: System.Web.Mvc.DataAnnotationsModelValidationFactory

The factory that will be used to create the ModelValidator object for the specified attribute.

Return to top
© 2015 Microsoft