FormatterParameterBinding Constructor
Initializes a new instance of the FormatterParameterBinding class.
Namespace: System.Web.Http.ModelBinding
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub New ( _
descriptor As HttpParameterDescriptor, _
formatters As IEnumerable(Of MediaTypeFormatter), _
bodyModelValidator As IBodyModelValidator _
)
'Usage
Dim descriptor As HttpParameterDescriptor
Dim formatters As IEnumerable(Of MediaTypeFormatter)
Dim bodyModelValidator As IBodyModelValidator
Dim instance As New FormatterParameterBinding(descriptor, _
formatters, bodyModelValidator)
public FormatterParameterBinding(
HttpParameterDescriptor descriptor,
IEnumerable<MediaTypeFormatter> formatters,
IBodyModelValidator bodyModelValidator
)
public:
FormatterParameterBinding(
HttpParameterDescriptor^ descriptor,
IEnumerable<MediaTypeFormatter^>^ formatters,
IBodyModelValidator^ bodyModelValidator
)
new :
descriptor:HttpParameterDescriptor *
formatters:IEnumerable<MediaTypeFormatter> *
bodyModelValidator:IBodyModelValidator -> FormatterParameterBinding
public function FormatterParameterBinding(
descriptor : HttpParameterDescriptor,
formatters : IEnumerable<MediaTypeFormatter>,
bodyModelValidator : IBodyModelValidator
)
Parameters
descriptor
Type: System.Web.Http.Controllers.HttpParameterDescriptorThe descriptor.
formatters
Type: System.Collections.Generic.IEnumerable<MediaTypeFormatter>The formatter.
bodyModelValidator
Type: System.Web.Http.Validation.IBodyModelValidatorThe body model validator.