DataAnnotationsModelValidatorProvider.RegisterAdapter Method (Type, Type)
Registers an adapter to provide client-side validation.
Namespace: System.Web.Http.Validation.Providers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public void RegisterAdapter(
Type attributeType,
Type adapterType
)
public:
void RegisterAdapter(
Type^ attributeType,
Type^ adapterType
)
member RegisterAdapter :
attributeType:Type *
adapterType:Type -> unit
Public Sub RegisterAdapter (
attributeType As Type,
adapterType As Type
)
Parameters
attributeType
Type: System.TypeThe type of the validation attribute.
adapterType
Type: System.TypeThe type of the adapter.
See Also
DataAnnotationsModelValidatorProvider Class
System.Web.Http.Validation.Providers Namespace
Return to top