ModelBinderAttribute.GetModelBinder Method (HttpConfiguration, Type)

 

Get the IModelBinder for this type.

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

Syntax

public IModelBinder GetModelBinder(
    HttpConfiguration configuration,
    Type modelType
)
public:
IModelBinder^ GetModelBinder(
    HttpConfiguration^ configuration,
    Type^ modelType
)
member GetModelBinder : 
        configuration:HttpConfiguration *
        modelType:Type -> IModelBinder
Public Function GetModelBinder (
    configuration As HttpConfiguration,
    modelType As Type
) As IModelBinder

Parameters

  • modelType
    Type: System.Type

    model type that the binder is expected to bind.

Return Value

Type: System.Web.Http.ModelBinding.IModelBinder

a non-null model binder.

See Also

ModelBinderAttribute Class
System.Web.Http.ModelBinding Namespace

Return to top