Share via


DataAnnotationsModelValidatorProvider.RegisterAdapterFactory Method

Registers an adapter factory for the validation provider.

Namespace:  System.Web.Http.Validation.Providers
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Sub RegisterAdapterFactory ( _
    attributeType As Type, _
    factory As DataAnnotationsModelValidationFactory _
)
'Usage
Dim instance As DataAnnotationsModelValidatorProvider
Dim attributeType As Type
Dim factory As DataAnnotationsModelValidationFactory

instance.RegisterAdapterFactory(attributeType, _
    factory)
public void RegisterAdapterFactory(
    Type attributeType,
    DataAnnotationsModelValidationFactory factory
)
public:
void RegisterAdapterFactory(
    Type^ attributeType, 
    DataAnnotationsModelValidationFactory^ factory
)
member RegisterAdapterFactory : 
        attributeType:Type * 
        factory:DataAnnotationsModelValidationFactory -> unit 
public function RegisterAdapterFactory(
    attributeType : Type, 
    factory : DataAnnotationsModelValidationFactory
)

Parameters

  • attributeType
    Type: System.Type
    The type of the attribute.

See Also

Reference

DataAnnotationsModelValidatorProvider Class

System.Web.Http.Validation.Providers Namespace