ViewDataDictionary.Add Method (KeyValuePair(Of String, Object))

Adds the specified item to the collection.

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

'Declaration
Public Sub Add ( _
	item As KeyValuePair(Of String, Object) _
)
'Usage
Dim instance As ViewDataDictionary 
Dim item As KeyValuePair(Of String, Object)

instance.Add(item)

Parameters

item
Type: System.Collections.Generic.KeyValuePair(Of String, Object)

The object to add to the collection.

Implements

ICollection(Of T).Add(T)

ExceptionCondition
NotSupportedException

The collection is read-only.

Show: