Partager via


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

Insert a function at the specified index in the collection. /// The function added is a wrapper around funcInner that checks that parameterType matches typeMatch.

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

Syntax

'Declaration
Public Sub Insert ( _
    index As Integer, _
    typeMatch As Type, _
    funcInner As Func(Of HttpParameterDescriptor, HttpParameterBinding) _
)
'Usage
Dim instance As ParameterBindingRulesCollection 
Dim index As Integer 
Dim typeMatch As Type 
Dim funcInner As Func(Of HttpParameterDescriptor, HttpParameterBinding)

instance.Insert(index, typeMatch, funcInner)
public void Insert(
    int index,
    Type typeMatch,
    Func<HttpParameterDescriptor, HttpParameterBinding> funcInner
)
public:
void Insert(
    int index, 
    Type^ typeMatch, 
    Func<HttpParameterDescriptor^, HttpParameterBinding^>^ funcInner
)
member Insert : 
        index:int * 
        typeMatch:Type * 
        funcInner:Func<HttpParameterDescriptor, HttpParameterBinding> -> unit
public function Insert(
    index : int, 
    typeMatch : Type, 
    funcInner : Func<HttpParameterDescriptor, HttpParameterBinding>
)

Parameters

  • typeMatch
    Type: System.Type

    type to match against HttpParameterDescriptor.ParameterType

See Also

Reference

ParameterBindingRulesCollection Class

Insert Overload

System.Web.Http.ModelBinding Namespace