ParameterBindingExtensions.BindWithModelBinding Method (HttpParameterDescriptor, IModelBinder)

Binds parameter by parsing the query string.

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


<ExtensionAttribute> _
Public Shared Function BindWithModelBinding ( _
    parameter As HttpParameterDescriptor, _
    binder As IModelBinder _
) As HttpParameterBinding
Dim parameter As HttpParameterDescriptor 
Dim binder As IModelBinder 
Dim returnValue As HttpParameterBinding 

returnValue = parameter.BindWithModelBinding(binder)
public static HttpParameterBinding BindWithModelBinding(
    this HttpParameterDescriptor parameter,
    IModelBinder binder
static HttpParameterBinding^ BindWithModelBinding(
    HttpParameterDescriptor^ parameter, 
    IModelBinder^ binder
static member BindWithModelBinding : 
        parameter:HttpParameterDescriptor * 
        binder:IModelBinder -> HttpParameterBinding
public static function BindWithModelBinding(
    parameter : HttpParameterDescriptor, 
    binder : IModelBinder
) : HttpParameterBinding


Return Value

Type: System.Web.Http.Controllers.HttpParameterBinding
The HTTP parameter binding object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpParameterDescriptor. When you use instance method syntax to call this method, omit the first parameter. For more information, see or

See Also


ParameterBindingExtensions Class

BindWithModelBinding Overload

System.Web.Http.Controllers Namespace