ParameterBindingExtensions::BindWithFormatter Method
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | BindWithFormatter(HttpParameterDescriptor^) | Binds parameter by parsing the HTTP body content. |
![]() ![]() | BindWithFormatter(HttpParameterDescriptor^, IEnumerable<MediaTypeFormatter^>^) | Binds parameter by parsing the HTTP body content. |
![]() ![]() | BindWithFormatter(HttpParameterDescriptor^, IEnumerable<MediaTypeFormatter^>^, IBodyModelValidator^) | Binds parameter by parsing the HTTP body content. |
![]() ![]() | BindWithFormatter(HttpParameterDescriptor^, array<MediaTypeFormatter^>^) | Binds parameter by parsing the HTTP body content. |
ParameterBindingExtensions::BindWithFormatter Method (HttpParameterDescriptor^)
Binds parameter by parsing the HTTP body content.
public: [ExtensionAttribute] static HttpParameterBinding^ BindWithFormatter( HttpParameterDescriptor^ parameter )
Parameters
- parameter
-
Type:
System.Web.Http.Controllers::HttpParameterDescriptor^
The parameter descriptor that describes the parameter to bind.
Return Value
Type: System.Web.Http.Controllers::HttpParameterBinding^The HTTP parameter binding object.
ParameterBindingExtensions::BindWithFormatter Method (HttpParameterDescriptor^, IEnumerable<MediaTypeFormatter^>^)
Binds parameter by parsing the HTTP body content.
public: [ExtensionAttribute] static HttpParameterBinding^ BindWithFormatter( HttpParameterDescriptor^ parameter, IEnumerable<MediaTypeFormatter^>^ formatters )
Parameters
- parameter
-
Type:
System.Web.Http.Controllers::HttpParameterDescriptor^
The parameter descriptor that describes the parameter to bind.
- formatters
-
Type:
System.Collections.Generic::IEnumerable<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.
ParameterBindingExtensions::BindWithFormatter Method (HttpParameterDescriptor^, IEnumerable<MediaTypeFormatter^>^, IBodyModelValidator^)
Binds parameter by parsing the HTTP body content.
public: [ExtensionAttribute] static HttpParameterBinding^ BindWithFormatter( HttpParameterDescriptor^ parameter, IEnumerable<MediaTypeFormatter^>^ formatters, IBodyModelValidator^ bodyModelValidator )
Parameters
- parameter
-
Type:
System.Web.Http.Controllers::HttpParameterDescriptor^
The parameter descriptor that describes the parameter to bind.
- formatters
-
Type:
System.Collections.Generic::IEnumerable<MediaTypeFormatter^>^
The list of formatters which provides selection of an appropriate formatter for serializing the parameter into object.
- bodyModelValidator
-
Type:
System.Web.Http.Validation::IBodyModelValidator^
The body model validator used to validate the parameter.
Return Value
Type: System.Web.Http.Controllers::HttpParameterBinding^The HTTP parameter binding object.
ParameterBindingExtensions::BindWithFormatter Method (HttpParameterDescriptor^, array<MediaTypeFormatter^>^)
Binds parameter by parsing the HTTP body content.
public: [ExtensionAttribute] static HttpParameterBinding^ BindWithFormatter( HttpParameterDescriptor^ parameter, ... array<MediaTypeFormatter^>^ formatters )
Parameters
- parameter
-
Type:
System.Web.Http.Controllers::HttpParameterDescriptor^
The parameter descriptor that describes the parameter to bind.
- formatters
-
Type:
array<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.

