AutofacWebApiModelBinderProviderGetBinder Method |
Find a binder for the given type.
Namespace:
Autofac.Integration.WebApi
Assembly:
Autofac.Integration.WebApi (in Autofac.Integration.WebApi.dll) Version: 6.0.0+03bf347ff3a78c2557675254b1a417eef4b464ec
Syntax public override IModelBinder GetBinder(
HttpConfiguration configuration,
Type modelType
)
Public Overrides Function GetBinder (
configuration As HttpConfiguration,
modelType As Type
) As IModelBinder
Parameters
- configuration
- Type: HttpConfiguration
A configuration object. - modelType
- Type: SystemType
The type of the model to bind against.
Return Value
Type:
IModelBinderA binder, which can attempt to bind this type. Or null if the binder knows statically that it will never be able to bind the type.
Exceptions See Also