ParameterBindingRulesCollection.Add Method

 

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

Overload List

Name Description
System_CAPS_pubmethod Add(T)

(Inherited from Collection<T>.)

System_CAPS_pubmethod Add(Type, Func<HttpParameterDescriptor, HttpParameterBinding>)

Adds function to the end of the collection. The function added is a wrapper around funcInner that checks that parameterType matches typeMatch.

See Also

ParameterBindingRulesCollection Class
System.Web.Http.ModelBinding Namespace

Return to top

ParameterBindingRulesCollection.Add Method (Type, Func<HttpParameterDescriptor, HttpParameterBinding>)

Adds function to the end of the collection. The function added is a wrapper around funcInner that checks that parameterType matches typeMatch.

Syntax

public void Add(
    Type typeMatch,
    Func<HttpParameterDescriptor, HttpParameterBinding> funcInner
)
public:
void Add(
    Type^ typeMatch,
    Func<HttpParameterDescriptor^, HttpParameterBinding^>^ funcInner
)
member Add : 
        typeMatch:Type *
        funcInner:Func<HttpParameterDescriptor, HttpParameterBinding> -> unit
Public Sub Add (
    typeMatch As Type,
    funcInner As Func(Of HttpParameterDescriptor, HttpParameterBinding)
)

Parameters

  • typeMatch
    Type: System.Type

    type to match against HttpParameterDescriptor.ParameterType

Return to top