TempDataDictionary TempDataDictionary TempDataDictionary Class

Definition

Represents a set of data that persists only from one request to the next.

public class TempDataDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,object>>, System.Collections.Generic.IDictionary<string,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>
type TempDataDictionary = class
    interface IDictionary<string, obj>
    interface ICollection<KeyValuePair<string, obj>>
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
Public Class TempDataDictionary
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object))
Inheritance
TempDataDictionaryTempDataDictionaryTempDataDictionary
Implements

Constructors

TempDataDictionary() TempDataDictionary() TempDataDictionary()

Initializes a new instance of the TempDataDictionary class.

Properties

Count Count Count

Gets the number of elements in the ICollection<T> object.

Item[String] Item[String] Item[String]

Gets or sets the object that has the specified key.

Keys Keys Keys

Gets an ICollection<T> object that contains the keys of elements in the IDictionary<TKey, TValue> object.

Values Values Values

Gets the ICollection<T> object that contains the values in the IDictionary<TKey, TValue> object.

Methods

Add(String, Object) Add(String, Object) Add(String, Object)

Adds an element that has the specified key and value to the IDictionary<TKey, TValue> object.

Clear() Clear() Clear()

Removes all items from the ICollection<T> instance.

ContainsKey(String) ContainsKey(String) ContainsKey(String)

Determines whether the IDictionary<TKey, TValue> instance contains an element that has the specified key.

ContainsValue(Object) ContainsValue(Object) ContainsValue(Object)

Determines whether the dictionary contains the specified value.

GetEnumerator() GetEnumerator() GetEnumerator()

Gets the enumerator.

Keep() Keep() Keep()

Marks all keys in the dictionary for retention.

Keep(String) Keep(String) Keep(String)

Marks the specified key in the dictionary for retention.

Load(ControllerContext, ITempDataProvider) Load(ControllerContext, ITempDataProvider) Load(ControllerContext, ITempDataProvider)

Loads the specified controller context by using the specified data provider.

Peek(String) Peek(String) Peek(String)

Returns an object that contains the element that is associated with the specified key, without marking the key for deletion.

Remove(String) Remove(String) Remove(String)

Removes the element that has the specified key from the IDictionary<TKey, TValue> object.

Save(ControllerContext, ITempDataProvider) Save(ControllerContext, ITempDataProvider) Save(ControllerContext, ITempDataProvider)

Saves the specified controller context by using the specified data provider.

TryGetValue(String, Object) TryGetValue(String, Object) TryGetValue(String, Object)

Gets the value of the element that has the specified key.

Explicit Interface Implementations

ICollection<KeyValuePair<String,Object>>.Add(KeyValuePair<String,Object>) ICollection<KeyValuePair<String,Object>>.Add(KeyValuePair<String,Object>) ICollection<KeyValuePair<String,Object>>.Add(KeyValuePair<String,Object>)
ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>) ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>) ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>)
ICollection<KeyValuePair<String,Object>>.CopyTo(KeyValuePair<String,Object>[], Int32) ICollection<KeyValuePair<String,Object>>.CopyTo(KeyValuePair<String,Object>[], Int32) ICollection<KeyValuePair<String,Object>>.CopyTo(KeyValuePair<String,Object>[], Int32)
ICollection<KeyValuePair<String,Object>>.IsReadOnly ICollection<KeyValuePair<String,Object>>.IsReadOnly ICollection<KeyValuePair<String,Object>>.IsReadOnly
ICollection<KeyValuePair<String,Object>>.Remove(KeyValuePair<String,Object>) ICollection<KeyValuePair<String,Object>>.Remove(KeyValuePair<String,Object>) ICollection<KeyValuePair<String,Object>>.Remove(KeyValuePair<String,Object>)
IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Returns an enumerator that can be used to iterate through a collection.

Applies to