ModelBinderProvider.GetBinder Method (HttpConfiguration, Type)

 

Finds a binder for the given type.

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

Syntax

public abstract IModelBinder GetBinder(
    HttpConfiguration configuration,
    Type modelType
)
public:
virtual IModelBinder^ GetBinder(
    HttpConfiguration^ configuration,
    Type^ modelType
) abstract
abstract GetBinder : 
        configuration:HttpConfiguration *
        modelType:Type -> IModelBinder
Public MustOverride Function GetBinder (
    configuration As HttpConfiguration,
    modelType As Type
) As IModelBinder

Parameters

  • modelType
    Type: System.Type

    The type of the model to bind against.

Return Value

Type: System.Web.Http.ModelBinding.IModelBinder

A 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.

See Also

ModelBinderProvider Class
System.Web.Http.ModelBinding Namespace

Return to top