ViewDataDictionary<TModel> Methods

Visual Studio 2010

The ViewDataDictionary<TModel> type exposes the following members.

  NameDescription
Public method Add(KeyValuePair<String, Object>) Adds the specified item to the collection. (Inherited from ViewDataDictionary.)
Public method Add(String, Object) Adds an element to the collection using the specified key and value . (Inherited from ViewDataDictionary.)
Public method Clear Removes all items from the collection. (Inherited from ViewDataDictionary.)
Public method Contains Determines whether the collection contains the specified item. (Inherited from ViewDataDictionary.)
Public method ContainsKey Determines whether the collection contains an element that has the specified key. (Inherited from ViewDataDictionary.)
Public method CopyTo Copies the elements of the collection to an array, starting at a particular index. (Inherited from ViewDataDictionary.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Eval(String) Evaluates the specified expression. (Inherited from ViewDataDictionary.)
Public method Eval(String, String) Evaluates the specified expression by using the specified format. (Inherited from ViewDataDictionary.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that can be used to iterate through the collection. (Inherited from ViewDataDictionary.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetViewDataInfo Returns information about the view data as defined by the expression parameter. (Inherited from ViewDataDictionary.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove(KeyValuePair<String, Object>) Removes the first occurrence of a specified object from the collection. (Inherited from ViewDataDictionary.)
Public method Remove(String) Removes the element from the collection using the specified key. (Inherited from ViewDataDictionary.)
Protected method SetModel Sets the data model to use for the view. (Overrides ViewDataDictionary.SetModel(Object).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetValue Attempts to retrieve the value that is associated with the specified key. (Inherited from ViewDataDictionary.)
Top

  NameDescription
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an enumerator that can be used to iterate through the collection. (Inherited from ViewDataDictionary.)
Top

Community Additions

ADD
Show: