TempDataDictionary 類別

定義

表示只會從某個要求保存到下一個要求的一組資料。

public ref class TempDataDictionary : Microsoft::AspNetCore::Mvc::ViewFeatures::ITempDataDictionary, System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>, System::Collections::Generic::IDictionary<System::String ^, System::Object ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>
public class TempDataDictionary : Microsoft.AspNetCore.Mvc.ViewFeatures.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>>
type TempDataDictionary = class
    interface ITempDataDictionary
    interface IDictionary<string, obj>
    interface ICollection<KeyValuePair<string, obj>>
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
type TempDataDictionary = class
    interface ITempDataDictionary
    interface ICollection<KeyValuePair<string, obj>>
    interface seq<KeyValuePair<string, obj>>
    interface IEnumerable
    interface IDictionary<string, obj>
Public Class TempDataDictionary
Implements ICollection(Of KeyValuePair(Of String, Object)), IDictionary(Of String, Object), IEnumerable(Of KeyValuePair(Of String, Object)), ITempDataDictionary
繼承
TempDataDictionary
實作

建構函式

TempDataDictionary(HttpContext, ITempDataProvider)

初始化 TempDataDictionary 類別的新執行個體。

屬性

Count

表示只會從某個要求保存到下一個要求的一組資料。

Item[String]

表示只會從某個要求保存到下一個要求的一組資料。

Keys

表示只會從某個要求保存到下一個要求的一組資料。

Values

表示只會從某個要求保存到下一個要求的一組資料。

方法

Add(String, Object)

表示只會從某個要求保存到下一個要求的一組資料。

Clear()

表示只會從某個要求保存到下一個要求的一組資料。

ContainsKey(String)

表示只會從某個要求保存到下一個要求的一組資料。

ContainsValue(Object)

表示只會從某個要求保存到下一個要求的一組資料。

GetEnumerator()

表示只會從某個要求保存到下一個要求的一組資料。

Keep()

將字典中的所有索引鍵都標記為保留。

Keep(String)

將字典中指定的索引鍵標記為保留。

Load()

使用已註冊 ITempDataProvider 的 載入字典。

Peek(String)

傳回包含與指定之索引鍵相關聯的項目的物件,而不會將索引鍵標記為待刪除。

Remove(String)

表示只會從某個要求保存到下一個要求的一組資料。

Save()

使用已註冊 ITempDataProvider 的 來儲存字典。

TryGetValue(String, Object)

表示只會從某個要求保存到下一個要求的一組資料。

明確介面實作

ICollection<KeyValuePair<String,Object>>.Add(KeyValuePair<String,Object>)

表示只會從某個要求保存到下一個要求的一組資料。

ICollection<KeyValuePair<String,Object>>.Contains(KeyValuePair<String,Object>)

表示只會從某個要求保存到下一個要求的一組資料。

ICollection<KeyValuePair<String,Object>>.CopyTo(KeyValuePair<String,Object>[], Int32)

表示只會從某個要求保存到下一個要求的一組資料。

ICollection<KeyValuePair<String,Object>>.IsReadOnly

表示只會從某個要求保存到下一個要求的一組資料。

ICollection<KeyValuePair<String,Object>>.Remove(KeyValuePair<String,Object>)

表示只會從某個要求保存到下一個要求的一組資料。

IEnumerable.GetEnumerator()

表示只會從某個要求保存到下一個要求的一組資料。

適用於