ParameterBindingExtensions.BindWithModelBinding Method (HttpParameterDescriptor, IModelBinder, IEnumerable<ValueProviderFactory>)
Binds parameter by parsing the query string.
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function BindWithModelBinding ( _
parameter As HttpParameterDescriptor, _
binder As IModelBinder, _
valueProviderFactories As IEnumerable(Of ValueProviderFactory) _
) As HttpParameterBinding
'Usage
Dim parameter As HttpParameterDescriptor
Dim binder As IModelBinder
Dim valueProviderFactories As IEnumerable(Of ValueProviderFactory)
Dim returnValue As HttpParameterBinding
returnValue = parameter.BindWithModelBinding(binder, _
valueProviderFactories)
public static HttpParameterBinding BindWithModelBinding(
this HttpParameterDescriptor parameter,
IModelBinder binder,
IEnumerable<ValueProviderFactory> valueProviderFactories
)
[ExtensionAttribute]
public:
static HttpParameterBinding^ BindWithModelBinding(
HttpParameterDescriptor^ parameter,
IModelBinder^ binder,
IEnumerable<ValueProviderFactory^>^ valueProviderFactories
)
static member BindWithModelBinding :
parameter:HttpParameterDescriptor *
binder:IModelBinder *
valueProviderFactories:IEnumerable<ValueProviderFactory> -> HttpParameterBinding
public static function BindWithModelBinding(
parameter : HttpParameterDescriptor,
binder : IModelBinder,
valueProviderFactories : IEnumerable<ValueProviderFactory>
) : HttpParameterBinding
Parameters
parameter
Type: System.Web.Http.Controllers.HttpParameterDescriptorThe parameter descriptor that describes the parameter to bind.
binder
Type: System.Web.Http.ModelBinding.IModelBinderThe model binder used to assemble the parameter into an object.
valueProviderFactories
Type: System.Collections.Generic.IEnumerable<ValueProviderFactory>The value provider factories which provide query string parameter data.
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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).