DataAnnotationsModelValidatorProvider.RegisterDefaultAdapterFactory Method

Registers the default adapter factory.

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

Syntax

'Declaration
Public Shared Sub RegisterDefaultAdapterFactory ( _
    factory As DataAnnotationsModelValidationFactory _
)
public static void RegisterDefaultAdapterFactory(
    DataAnnotationsModelValidationFactory factory
)
public:
static void RegisterDefaultAdapterFactory(
    DataAnnotationsModelValidationFactory^ factory
)

Parameters

Remarks

This method registers the default adapter factory for types that derive from ValidationAttribute only if the attribute type is not registered with RegisterAdapterFactory(Type, DataAnnotationsModelValidationFactory).

See Also

Reference

DataAnnotationsModelValidatorProvider Class

System.Web.Mvc Namespace