TempDataDictionary 類別

定義

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

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))
繼承
TempDataDictionary
實作

建構函式

TempDataDictionary()

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

屬性

Count

取得 物件中的 ICollection<T> 專案數目。

Item[String]

取得或設定有指定之索引鍵的物件。

Keys

ICollection<T>取得 物件,其中包含 物件中 IDictionary<TKey,TValue> 專案的索引鍵。

Values

ICollection<T>取得 物件,其中包含 物件中的 IDictionary<TKey,TValue> 值。

方法

Add(String, Object)

將具有指定索引鍵和值的專案加入至 IDictionary<TKey,TValue> 物件。

Clear()

ICollection<T> 實例中移除所有專案。

ContainsKey(String)

判斷實例是否 IDictionary<TKey,TValue> 包含具有指定索引鍵的專案。

ContainsValue(Object)

判斷字典是否包含指定的值。

GetEnumerator()

取得列舉值。

Keep()

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

Keep(String)

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

Load(ControllerContext, ITempDataProvider)

使用指定的資料提供者,載入指定的控制器內容。

Peek(String)

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

Remove(String)

從 物件中移除具有指定索引鍵的專案 IDictionary<TKey,TValue>

Save(ControllerContext, 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()

傳回可用於逐一查看集合的列舉程式。

適用於