ITempDataDictionary 接口

定义

表示仅从一个请求保持到下一个请求的数据集。

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>>
派生
实现

方法

Keep()

将字典中的所有键都标记为需保留。

Keep(String)

将字典中的指定键标记为需保留。

Load()

使用已注册 ITempDataProvider的 加载字典。

Peek(String)

返回包含与指定键关联的元素的对象,不将该键标记为需删除。

Save()

使用已注册 ITempDataProvider的 保存字典。

适用于

产品 版本
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