Export (0) Print
Expand All

ViewDataDictionary<TModel> Members

Represents a container that is used to pass strongly typed data between a controller and a view.

The ViewDataDictionary<TModel> type exposes the following members.

  NameDescription
Public method ViewDataDictionary<TModel> Overloaded. Initializes a new instance of the ViewDataDictionary<TModel> class.
Top

  NameDescription
Public method Add Overloaded. Adds an item to the collection.
Public method Clear Removes all items from the collection. (Inherited from ViewDataDictionary.)
Public method Contains Determines whether the collection contains a specified item. (Inherited from ViewDataDictionary.)
Public method ContainsKey Determines whether the collection contains an element with 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 Overloaded. Evaluates an expression.
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object 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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Overloaded. Removes an object from the collection.
Protected method SetModel Sets the model. (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
Public property Count Gets the number of elements in the collection. (Inherited from ViewDataDictionary.)
Public property IsReadOnly Gets a value that indicates whether the collection is read-only. (Inherited from ViewDataDictionary.)
Public property Item Gets or sets the item that is associated with the specified key. (Inherited from ViewDataDictionary.)
Public property Keys Gets a collection that contains the keys of this dictionary. (Inherited from ViewDataDictionary.)
Public property Model Gets or sets the model.
Public property ModelState Gets the state of the model. (Inherited from ViewDataDictionary.)
Public property Values Gets a collection that contains the values in this dictionary. (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

Show:
© 2014 Microsoft