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 the default adapter type for objects which implement IValidatableObject. The adapter type must derive from ModelValidator and it must contain a public constructor which takes two parameters of types ModelMetadata and HttpActionContext.
Namespace: System.Web.Http.Validation.Providers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub RegisterDefaultValidatableObjectAdapter ( _
adapterType As Type _
)
'Usage
Dim instance As DataAnnotationsModelValidatorProvider
Dim adapterType As Type
instance.RegisterDefaultValidatableObjectAdapter(adapterType)
public void RegisterDefaultValidatableObjectAdapter(
Type adapterType
)
public:
void RegisterDefaultValidatableObjectAdapter(
Type^ adapterType
)
member RegisterDefaultValidatableObjectAdapter :
adapterType:Type -> unit
public function RegisterDefaultValidatableObjectAdapter(
adapterType : Type
)
Parameters
- adapterType
Type: System.Type
The type of the adapter.