次の方法で共有


ViewDataDictionary.Add Method

Include Protected Members
Include Inherited Members

Adds an item to the collection.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Add(KeyValuePair<String, Object>) Adds the specified item to the collection.
Public method Add(String, Object) Adds an element to the collection using the specified key and value .

Top

See Also

Reference

ViewDataDictionary Class

System.Web.Mvc Namespace