Share via


CompositeModelBinderProvider.GetBinder Method

Gets the binder for the model.

Namespace:  System.Web.Http.ModelBinding.Binders
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Overrides Function GetBinder ( _
    configuration As HttpConfiguration, _
    modelType As Type _
) As IModelBinder
'Usage
Dim instance As CompositeModelBinderProvider 
Dim configuration As HttpConfiguration 
Dim modelType As Type 
Dim returnValue As IModelBinder 

returnValue = instance.GetBinder(configuration, _
    modelType)
public override IModelBinder GetBinder(
    HttpConfiguration configuration,
    Type modelType
)
public:
virtual IModelBinder^ GetBinder(
    HttpConfiguration^ configuration, 
    Type^ modelType
) override
abstract GetBinder : 
        configuration:HttpConfiguration * 
        modelType:Type -> IModelBinder  
override GetBinder : 
        configuration:HttpConfiguration * 
        modelType:Type -> IModelBinder
public override function GetBinder(
    configuration : HttpConfiguration, 
    modelType : Type
) : IModelBinder

Parameters

Return Value

Type: System.Web.Http.ModelBinding.IModelBinder
The binder for the model.

See Also

Reference

CompositeModelBinderProvider Class

System.Web.Http.ModelBinding.Binders Namespace