DataAnnotationsModelValidatorProvider.RegisterDefaultValidatableObjectAdapterFactory Method
Registers the default adapter factory for objects which implement IValidatableObject.
Namespace: System.Web.Http.Validation.Providers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub RegisterDefaultValidatableObjectAdapterFactory ( _
factory As DataAnnotationsValidatableObjectAdapterFactory _
)
'Usage
Dim instance As DataAnnotationsModelValidatorProvider
Dim factory As DataAnnotationsValidatableObjectAdapterFactory
instance.RegisterDefaultValidatableObjectAdapterFactory(factory)
public void RegisterDefaultValidatableObjectAdapterFactory(
DataAnnotationsValidatableObjectAdapterFactory factory
)
public:
void RegisterDefaultValidatableObjectAdapterFactory(
DataAnnotationsValidatableObjectAdapterFactory^ factory
)
member RegisterDefaultValidatableObjectAdapterFactory :
factory:DataAnnotationsValidatableObjectAdapterFactory -> unit
public function RegisterDefaultValidatableObjectAdapterFactory(
factory : DataAnnotationsValidatableObjectAdapterFactory
)
Parameters
- factory
Type: System.Web.Http.Validation.Providers.DataAnnotationsValidatableObjectAdapterFactory
The factory.