ITempDataDictionary Interface

Definition

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

C#
public interface ITempDataDictionary : 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>>
Derived
Implements

Methods

Keep()

Marks all keys in the dictionary for retention.

Keep(String)

Marks the specified key in the dictionary for retention.

Load()

Loads the dictionary by using the registered ITempDataProvider.

Peek(String)

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

Save()

Saves the dictionary by using the registered ITempDataProvider.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0