共用方式為


ViewDataDictionary.Remove Method

Include Protected Members
Include Inherited Members

Removes an object from 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 Remove(KeyValuePair<String, Object>) Removes the first occurrence of a specified object from the collection.
Public method Remove(String) Removes the element from the collection using the specified key.

Top

See Also

Reference

ViewDataDictionary Class

System.Web.Mvc Namespace