HttpConfigurationExtensions.BindParameter Method

Register that the given parameter type on an Action is to be bound using the model binder.

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


<ExtensionAttribute> _
Public Shared Sub BindParameter ( _
    configuration As HttpConfiguration, _
    type As Type, _
    binder As IModelBinder _
Dim configuration As HttpConfiguration 
Dim type As Type 
Dim binder As IModelBinder 

configuration.BindParameter(type, _
public static void BindParameter(
    this HttpConfiguration configuration,
    Type type,
    IModelBinder binder
static void BindParameter(
    HttpConfiguration^ configuration, 
    Type^ type, 
    IModelBinder^ binder
static member BindParameter : 
        configuration:HttpConfiguration * 
        type:Type * 
        binder:IModelBinder -> unit
public static function BindParameter(
    configuration : HttpConfiguration, 
    type : Type, 
    binder : IModelBinder


  • type
    Type: System.Type

    parameter type that binder is applied to

Usage Note

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

See Also


HttpConfigurationExtensions Class

System.Web.Http Namespace