DataAnnotationsModelValidatorProvider.RegisterValidatableObjectAdapterFactory Method (Type, DataAnnotationsValidatableObjectAdapterFactory)

 

Registers an adapter factory for the object validation provider.

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

public static void RegisterValidatableObjectAdapterFactory(
	Type modelType,
	DataAnnotationsValidatableObjectAdapterFactory factory
)

Parameters

modelType
Type: System.Type

The type of the model.

factory
Type: System.Web.Mvc.DataAnnotationsValidatableObjectAdapterFactory

The factory.

Return to top
Show: