DataAnnotationsModelValidatorProvider.RegisterDefaultAdapter Method

Registers the default adapter.

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

Syntax

'Declaration
Public Shared Sub RegisterDefaultAdapter ( _
    adapterType As Type _
)
public static void RegisterDefaultAdapter(
    Type adapterType
)
public:
static void RegisterDefaultAdapter(
    Type^ adapterType
)

Parameters

  • adapterType
    Type: System.Type
    The type of the adapter.

Remarks

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

See Also

Reference

DataAnnotationsModelValidatorProvider Class

System.Web.Mvc Namespace