ParameterBindingExtensions.BindWithAttribute Method (HttpParameterDescriptor, ParameterBindingAttribute)

 

Bind the parameter as if it had the given attribute on the declaration.

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

public static HttpParameterBinding BindWithAttribute(
	this HttpParameterDescriptor parameter,
	ParameterBindingAttribute attribute
)

Parameters

parameter
Type: System.Web.Http.Controllers.HttpParameterDescriptor

The parameter to provide binding for.

attribute
Type: System.Web.Http.ParameterBindingAttribute

The attribute that describes the binding.

Return Value

Type: System.Web.Http.Controllers.HttpParameterBinding

The HTTP parameter binding object.

Return to top
Show: