ViewDataDictionary Methods

Include Protected Members
Include Inherited Members

The ViewDataDictionary type exposes the following members.

Methods

  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 .
Public method Clear Removes all items from the collection.
Public method Contains Determines whether the collection contains the specified item.
Public method ContainsKey Determines whether the collection contains an element that has the specified key.
Public method CopyTo Copies the elements of the collection to an array, starting at a particular index.
Public method Equals (Inherited from Object.)
Public method Eval(String) Evaluates the specified expression.
Public method Eval(String, String) Evaluates the specified expression by using the specified format.
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that can be used to iterate through the collection.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetViewDataInfo Returns information about the view data as defined by the expression parameter.
Protected method MemberwiseClone (Inherited from Object.)
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.
Protected method SetModel Sets the data model to use for the view.
Public method ToString (Inherited from Object.)
Public method TryGetValue Attempts to retrieve the value that is associated with the specified key.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an enumerator that can be used to iterate through the collection.

Top

See Also

Reference

ViewDataDictionary Class

System.Web.Mvc Namespace