Читати англійською Редагувати

Поділитися через


ModelStateDictionary.Add Method

Definition

Adds an item to the dictionary.

Overloads

Add(KeyValuePair<String,ModelState>)

Adds the specified item to the dictionary.

Add(String, ModelState)

Adds an item that has the specified key and value to the dictionary.

Add(KeyValuePair<String,ModelState>)

Adds the specified item to the dictionary.

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

Parameters

item
KeyValuePair<String,ModelState>

The item.

Implements

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.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(String, ModelState)

Adds an item that has the specified key and value to the dictionary.

C#
public void Add(string key, System.Web.ModelBinding.ModelState value);

Parameters

key
String

The key.

value
ModelState

The value.

Implements

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.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