Export (0) Print
Expand All

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

Adds the specified item to the collection.

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

public final function Add(
	item : KeyValuePair<String, Object>
)

Parameters

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

The object to add to the collection.

Implements

ICollection(T).Add(T)

ExceptionCondition
NotSupportedException

The collection is read-only.

Show:
© 2015 Microsoft