ParameterBindingRulesCollection.Add Method
Namespace: System.Web.Http.ModelBinding
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
Add(T) | (Inherited from Collection<T>.) |
|
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.Typetype to match against HttpParameterDescriptor.ParameterType
funcInner
Type: System.Func<HttpParameterDescriptor, HttpParameterBinding>inner function that is invoked if type match succeeds
Return to top