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)
Syntax
public static HttpParameterBinding BindWithAttribute(
this HttpParameterDescriptor parameter,
ParameterBindingAttribute attribute
)
public:
[ExtensionAttribute]
static HttpParameterBinding^ BindWithAttribute(
HttpParameterDescriptor^ parameter,
ParameterBindingAttribute^ attribute
)
static member BindWithAttribute :
parameter:HttpParameterDescriptor *
attribute:ParameterBindingAttribute -> HttpParameterBinding
<ExtensionAttribute>
Public Shared Function BindWithAttribute (
parameter As HttpParameterDescriptor,
attribute As ParameterBindingAttribute
) As HttpParameterBinding
Parameters
parameter
Type: System.Web.Http.Controllers.HttpParameterDescriptorThe parameter to provide binding for.
attribute
Type: System.Web.Http.ParameterBindingAttributeThe attribute that describes the binding.
Return Value
Type: System.Web.Http.Controllers.HttpParameterBinding
The HTTP parameter binding object.
See Also
ParameterBindingExtensions Class
System.Web.Http.Controllers Namespace
Return to top