DataAnnotationsModelValidatorProvider.RegisterAdapter Method (Type, Type)

.NET Framework (current version)
 

Registers an adapter for client-side validation.

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

public static void RegisterAdapter(
	Type attributeType,
	Type adapterType
)

Parameters

attributeType
Type: System.Type

The type of the validation attribute.

adapterType
Type: System.Type

The type of the adapter.

.NET Framework
Available since 4.5
Return to top
Show: