Export (0) Print
Expand All

ModelStateDictionary.Add Method (String, ModelState)

Adds an element that has the specified key and value to the model-state dictionary.

Namespace:  System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)

public void Add(
	string key,
	ModelState value
)

Parameters

key
Type: System.String
The key of the element to add.
value
Type: System.Web.Http.ModelBinding.ModelState
The value of the element to add.

Implements

IDictionary<TKey, TValue>.Add(TKey, TValue)
Show:
© 2015 Microsoft