Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Add Method (KeyValuePair(String, Object))
Collapse the table of content
Expand the table of content

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)

abstract Add : 
        item:KeyValuePair<string, Object> -> unit  
override Add : 
        item:KeyValuePair<string, Object> -> unit

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