Partager via


ParameterBindingExtensions Class

Defines extension methods for HttpParameterBinding.

Inheritance Hierarchy

System.Object
  System.Web.Http.Controllers.ParameterBindingExtensions

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

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class ParameterBindingExtensions
'Usage
public static class ParameterBindingExtensions
[ExtensionAttribute]
public ref class ParameterBindingExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type ParameterBindingExtensions =  class end
public final class ParameterBindingExtensions

The ParameterBindingExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member BindAsError Binds parameter that results as an error.
Public methodStatic member BindWithAttribute Bind the parameter as if it had the given attribute on the declaration.
Public methodStatic member BindWithFormatter(HttpParameterDescriptor) Binds parameter by parsing the HTTP body content.
Public methodStatic member BindWithFormatter(HttpParameterDescriptor, IEnumerable<MediaTypeFormatter>) Binds parameter by parsing the HTTP body content.
Public methodStatic member BindWithFormatter(HttpParameterDescriptor, MediaTypeFormatter[]) Binds parameter by parsing the HTTP body content.
Public methodStatic member BindWithFormatter(HttpParameterDescriptor, IEnumerable<MediaTypeFormatter>, IBodyModelValidator) Binds parameter by parsing the HTTP body content.
Public methodStatic member BindWithModelBinding(HttpParameterDescriptor) Binds parameter by parsing the query string.
Public methodStatic member BindWithModelBinding(HttpParameterDescriptor, IEnumerable<ValueProviderFactory>) Binds parameter by parsing the query string.
Public methodStatic member BindWithModelBinding(HttpParameterDescriptor, IModelBinder) Binds parameter by parsing the query string.
Public methodStatic member BindWithModelBinding(HttpParameterDescriptor, ValueProviderFactory[]) Binds parameter by parsing the query string.
Public methodStatic member BindWithModelBinding(HttpParameterDescriptor, IModelBinder, IEnumerable<ValueProviderFactory>) Binds parameter by parsing the query string.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Http.Controllers Namespace