Export (0) Print
Expand All

ParameterBindingExtensions.BindWithFormatter Method (HttpParameterDescriptor, MediaTypeFormatter[])

Binds parameter by parsing the HTTP body content.

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

public static HttpParameterBinding BindWithFormatter(
	this HttpParameterDescriptor parameter,
	params MediaTypeFormatter[] formatters
)

Parameters

parameter
Type: System.Web.Http.Controllers.HttpParameterDescriptor
The parameter descriptor that describes the parameter to bind.
formatters
Type: System.Net.Http.Formatting.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 http://msdn.microsoft.com/en-us/library/bb384936.aspx or http://msdn.microsoft.com/en-us/library/bb383977.aspx.
Show:
© 2014 Microsoft