ModelBinderAttribute.GetBinding Method
Gets the binding for a parameter.
Namespace: System.Web.Http.ModelBinding
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overrides Function GetBinding ( _
parameter As HttpParameterDescriptor _
) As HttpParameterBinding
'Usage
Dim instance As ModelBinderAttribute
Dim parameter As HttpParameterDescriptor
Dim returnValue As HttpParameterBinding
returnValue = instance.GetBinding(parameter)
public override HttpParameterBinding GetBinding(
HttpParameterDescriptor parameter
)
public:
virtual HttpParameterBinding^ GetBinding(
HttpParameterDescriptor^ parameter
) override
abstract GetBinding :
parameter:HttpParameterDescriptor -> HttpParameterBinding
override GetBinding :
parameter:HttpParameterDescriptor -> HttpParameterBinding
public override function GetBinding(
parameter : HttpParameterDescriptor
) : HttpParameterBinding
Parameters
parameter
Type: System.Web.Http.Controllers.HttpParameterDescriptorThe parameter to bind.
Return Value
Type: System.Web.Http.Controllers.HttpParameterBinding
The HttpParameterBindingthat contains the binding.