Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ParameterBindingExtensions::BindWithFormatter Method

 

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.

Return to top

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.

Return to top

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.

Return to top

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.

Return to top
Show: