Partager via


ParameterBindingRulesCollection.LookupBinding Method

Execute each binding function in order until one of them returns a non-null binding.

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

Syntax

'Declaration
Public Function LookupBinding ( _
    parameter As HttpParameterDescriptor _
) As HttpParameterBinding
'Usage
Dim instance As ParameterBindingRulesCollection 
Dim parameter As HttpParameterDescriptor 
Dim returnValue As HttpParameterBinding 

returnValue = instance.LookupBinding(parameter)
public HttpParameterBinding LookupBinding(
    HttpParameterDescriptor parameter
)
public:
HttpParameterBinding^ LookupBinding(
    HttpParameterDescriptor^ parameter
)
member LookupBinding : 
        parameter:HttpParameterDescriptor -> HttpParameterBinding
public function LookupBinding(
    parameter : HttpParameterDescriptor
) : HttpParameterBinding

Parameters

Return Value

Type: System.Web.Http.Controllers.HttpParameterBinding
the first non-null binding produced for the parameter. Of null if no binding is produced.

See Also

Reference

ParameterBindingRulesCollection Class

System.Web.Http.ModelBinding Namespace