DataAnnotationsModelValidatorProvider.RegisterAdapter Method
Registers an adapter to provide client-side validation.
Namespace: System.Web.Http.Validation.Providers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub RegisterAdapter ( _
attributeType As Type, _
adapterType As Type _
)
'Usage
Dim instance As DataAnnotationsModelValidatorProvider
Dim attributeType As Type
Dim adapterType As Type
instance.RegisterAdapter(attributeType, _
adapterType)
public void RegisterAdapter(
Type attributeType,
Type adapterType
)
public:
void RegisterAdapter(
Type^ attributeType,
Type^ adapterType
)
member RegisterAdapter :
attributeType:Type *
adapterType:Type -> unit
public function RegisterAdapter(
attributeType : Type,
adapterType : Type
)
Parameters
- attributeType
Type: System.Type
The type of the validation attribute.
- adapterType
Type: System.Type
The type of the adapter.