ITempData Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a dictionary for storing data that is needed for subsequent requests. Data stored in TempData is automatically removed after it is read unless Keep() or Keep(String) is called, or it is accessed via Peek(String).
public interface ITempData : 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 ITempData = interface
interface IDictionary<string, obj>
interface ICollection<KeyValuePair<string, obj>>
interface seq<KeyValuePair<string, obj>>
interface IEnumerable
Public Interface ITempData
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object))
- Implements
-
ICollection<KeyValuePair<String,Object>> ICollection<KeyValuePair<TKey,TValue>> IDictionary<String,Object> IEnumerable<KeyValuePair<String,Object>> IEnumerable<KeyValuePair<TKey,TValue>> IEnumerable<T> IEnumerable
Methods
| Name | Description |
|---|---|
| Get(String) |
Gets the value associated with the specified key and then schedules it for deletion. |
| Keep() |
Makes all of the keys currently in TempData persist for another request. |
| Keep(String) |
Makes the element with the |
| Peek(String) |
Gets the value associated with the specified key without scheduling it for deletion. |