ParameterBindingExtensions.BindWithFormatter Method (HttpParameterDescriptor, IEnumerable(Of MediaTypeFormatter))

Binds parameter by parsing the HTTP body content.

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

<ExtensionAttribute> _
Public Shared Function BindWithFormatter ( _
	parameter As HttpParameterDescriptor, _
	formatters As IEnumerable(Of MediaTypeFormatter) _
) As HttpParameterBinding
Dim parameter As HttpParameterDescriptor 
Dim formatters As IEnumerable(Of MediaTypeFormatter)
Dim returnValue As HttpParameterBinding 

returnValue = parameter.BindWithFormatter(formatters)


Type: System.Web.Http.Controllers.HttpParameterDescriptor

The parameter descriptor that describes the parameter to bind.

Type: System.Collections.Generic.IEnumerable(Of MediaTypeFormatter)

The list of formatters which provides selection of an appropriate formatter for serializing the parameter into object.

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