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)

Syntax

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

configuration.BindParameter(type, _
    binder)
public static void BindParameter(
    this HttpConfiguration configuration,
    Type type,
    IModelBinder binder
)
[ExtensionAttribute]
public:
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
)

Parameters

  • 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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).

See Also

Reference

HttpConfigurationExtensions Class

System.Web.Http Namespace