Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
- factory
Type: System.Web.Http.Validation.Providers.DataAnnotationsModelValidationFactory
The factory that will be used to create the ModelValidator object for the specified attribute.