Partager via


ModelBinderDictionary.Add Method (KeyValuePair<Type, IModelBinder>)

Adds the specified item to the model binder dictionary.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Sub Add ( _
    item As KeyValuePair(Of Type, IModelBinder) _
)
public void Add(
    KeyValuePair<Type, IModelBinder> item
)
public:
virtual void Add(
    KeyValuePair<Type^, IModelBinder^> item
) sealed

Parameters

Implements

ICollection<T>.Add(T)

Exceptions

Exception Condition
NotSupportedException

The ICollection<T> object is read-only.

See Also

Reference

ModelBinderDictionary Class

Add Overload

System.Web.Mvc Namespace