Share via


ODataModelBinderProvider.GetBinder Method

Retrieves the model binder for the specified type.

Namespace:  System.Web.Http.OData.Formatter
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Syntax

'Declaration
Public Overrides Function GetBinder ( _
    configuration As HttpConfiguration, _
    modelType As Type _
) As IModelBinder
'Usage
Dim instance As ODataModelBinderProvider 
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

  • modelType
    Type: System.Type
    The type of the model to retrieve.

Return Value

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

See Also

Reference

ODataModelBinderProvider Class

System.Web.Http.OData.Formatter Namespace