ParameterBindingExtensions.BindWithFormatter Method
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
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, MediaTypeFormatter[]) | Binds parameter by parsing the HTTP body content. |
See Also
ParameterBindingExtensions Class
System.Web.Http.Controllers Namespace
Return to top
ParameterBindingExtensions.BindWithFormatter Method (HttpParameterDescriptor)
Binds parameter by parsing the HTTP body content.
Syntax
public static HttpParameterBinding BindWithFormatter(
this HttpParameterDescriptor parameter
)
public:
[ExtensionAttribute]
static HttpParameterBinding^ BindWithFormatter(
HttpParameterDescriptor^ parameter
)
static member BindWithFormatter :
parameter:HttpParameterDescriptor -> HttpParameterBinding
<ExtensionAttribute>
Public Shared Function BindWithFormatter (
parameter As HttpParameterDescriptor
) As HttpParameterBinding
Parameters
parameter
Type: System.Web.Http.Controllers.HttpParameterDescriptorThe 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.
Syntax
public static HttpParameterBinding BindWithFormatter(
this HttpParameterDescriptor parameter,
IEnumerable<MediaTypeFormatter> formatters
)
public:
[ExtensionAttribute]
static HttpParameterBinding^ BindWithFormatter(
HttpParameterDescriptor^ parameter,
IEnumerable<MediaTypeFormatter^>^ formatters
)
static member BindWithFormatter :
parameter:HttpParameterDescriptor *
formatters:IEnumerable<MediaTypeFormatter> -> HttpParameterBinding
<ExtensionAttribute>
Public Shared Function BindWithFormatter (
parameter As HttpParameterDescriptor,
formatters As IEnumerable(Of MediaTypeFormatter)
) As HttpParameterBinding
Parameters
parameter
Type: System.Web.Http.Controllers.HttpParameterDescriptorThe 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.
Syntax
public static HttpParameterBinding BindWithFormatter(
this HttpParameterDescriptor parameter,
IEnumerable<MediaTypeFormatter> formatters,
IBodyModelValidator bodyModelValidator
)
public:
[ExtensionAttribute]
static HttpParameterBinding^ BindWithFormatter(
HttpParameterDescriptor^ parameter,
IEnumerable<MediaTypeFormatter^>^ formatters,
IBodyModelValidator^ bodyModelValidator
)
static member BindWithFormatter :
parameter:HttpParameterDescriptor *
formatters:IEnumerable<MediaTypeFormatter> *
bodyModelValidator:IBodyModelValidator -> HttpParameterBinding
<ExtensionAttribute>
Public Shared Function BindWithFormatter (
parameter As HttpParameterDescriptor,
formatters As IEnumerable(Of MediaTypeFormatter),
bodyModelValidator As IBodyModelValidator
) As HttpParameterBinding
Parameters
parameter
Type: System.Web.Http.Controllers.HttpParameterDescriptorThe 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.IBodyModelValidatorThe 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, MediaTypeFormatter[])
Binds parameter by parsing the HTTP body content.
Syntax
public static HttpParameterBinding BindWithFormatter(
this HttpParameterDescriptor parameter,
params MediaTypeFormatter[] formatters
)
public:
[ExtensionAttribute]
static HttpParameterBinding^ BindWithFormatter(
HttpParameterDescriptor^ parameter,
... array<MediaTypeFormatter^>^ formatters
)
static member BindWithFormatter :
parameter:HttpParameterDescriptor *
[<ParamArrayAttribute>] formatters:MediaTypeFormatter[] -> HttpParameterBinding
<ExtensionAttribute>
Public Shared Function BindWithFormatter (
parameter As HttpParameterDescriptor,
ParamArray formatters As MediaTypeFormatter()
) As HttpParameterBinding
Parameters
parameter
Type: System.Web.Http.Controllers.HttpParameterDescriptorThe 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.
Return to top