ModelBinderDictionary.Add Method

Definition

Overloads

Add(KeyValuePair<Type,IModelBinder>)

Adds the specified item to the model binder dictionary.

Add(Type, IModelBinder)

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

Add(KeyValuePair<Type,IModelBinder>)

Adds the specified item to the model binder dictionary.

public void Add (System.Collections.Generic.KeyValuePair<Type,System.Web.Mvc.IModelBinder> item);
abstract member Add : System.Collections.Generic.KeyValuePair<Type, System.Web.Mvc.IModelBinder> -> unit
override this.Add : System.Collections.Generic.KeyValuePair<Type, System.Web.Mvc.IModelBinder> -> unit
Public Sub Add (item As KeyValuePair(Of Type, IModelBinder))

Parameters

item
KeyValuePair<Type,IModelBinder>

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

Implements

Exceptions

The ICollection<T> object is read-only.

Applies to

Add(Type, IModelBinder)

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

public void Add (Type key, System.Web.Mvc.IModelBinder value);
abstract member Add : Type * System.Web.Mvc.IModelBinder -> unit
override this.Add : Type * System.Web.Mvc.IModelBinder -> unit
Public Sub Add (key As Type, value As IModelBinder)

Parameters

key
Type

The key of the element to add.

value
IModelBinder

The value of the element to add.

Implements

Exceptions

key is null.

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

Applies to