ModelStateDictionary.Add Method (KeyValuePair(Of String, ModelState))

Visual Studio 2010

Adds the specified item to the model-state dictionary.

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

'Declaration
Public Sub Add ( _
	item As KeyValuePair(Of String, ModelState) _
)

Parameters

item
Type: System.Collections.Generic.KeyValuePair(Of String, ModelState)
The object to add to the model-state dictionary.

Implements

ICollection(Of T).Add(T)

ExceptionCondition
NotSupportedException

The model-state dictionary is read-only.

Community Additions

ADD
Show: