DataAnnotationsModelValidatorProvider.RegisterAdapter(Type, Type) Method

Definition

Registers an adapter to provide client-side validation.

public static void RegisterAdapter (Type attributeType, Type adapterType);
static member RegisterAdapter : Type * Type -> unit
Public Shared Sub RegisterAdapter (attributeType As Type, adapterType As Type)

Parameters

attributeType
Type

The type of the validation attribute.

adapterType
Type

The type of the adapter.

Applies to