ModelBinderDictionary.Add Method

Definition

Adds a new item to the dictionary.

Overloads

Add(KeyValuePair<Type,IModelBinder>)

Adds the specified item to the dictionary.

Add(Type, IModelBinder)

Adds the specified item to the dictionary.

Add(KeyValuePair<Type,IModelBinder>)

Adds the specified item to the dictionary.

C#
public void Add(System.Collections.Generic.KeyValuePair<Type,System.Web.ModelBinding.IModelBinder> item);

Parameters

item
KeyValuePair<Type,IModelBinder>

The object to add to the dictionary.

Implements

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Add(Type, IModelBinder)

Adds the specified item to the dictionary.

C#
public void Add(Type key, System.Web.ModelBinding.IModelBinder value);

Parameters

key
Type

The key of the item to add.

value
IModelBinder

The value of the item to add.

Implements

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1