ModelBinderDictionary::Add Method

 

Adds an item to the model binder dictionary.

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

NameDescription
System_CAPS_pubmethodAdd(KeyValuePair<Type^, IModelBinder^>)

Adds the specified item to the model binder dictionary.

System_CAPS_pubmethodAdd(Type^, IModelBinder^)

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

Return to top

ModelBinderDictionary::Add Method (KeyValuePair<Type^, IModelBinder^>)

Adds the specified item to the model binder dictionary.

public:
virtual void Add(
	KeyValuePair<Type^, IModelBinder^> item
) sealed

Parameters

item
Type: System.Collections.Generic::KeyValuePair<Type^, IModelBinder^>

The object to add to the ICollection<T> instance.

Exception Condition
NotSupportedException

The ICollection<T> object is read-only.

Return to top

ModelBinderDictionary::Add Method (Type^, IModelBinder^)

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

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.

Exception Condition
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.

Return to top
Show: