ModelBinderDictionary::Add Method (Type, IModelBinder)

Visual Studio 2010

Adds the specified item to the model binder dictionary using the specified key.

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

public:
virtual void Add(
	Type^ key, 
	IModelBinder^ value
) sealed

Parameters

key
Type: System::Type
The key of the element to add.
value
Type: System.Web.Mvc::IModelBinder
The value of the element to add.

Implements

IDictionary<TKey, TValue>::Add(TKey, TValue)

ExceptionCondition
NotSupportedException

The IDictionary<TKey, TValue> object is read-only.

ArgumentNullException

key is null.

ArgumentException

An element that has the same key already exists in the IDictionary<TKey, TValue> object.

Community Additions

ADD
Show: