ITempDataDictionary Interface¶
Syntax¶
public interface ITempDataDictionary : IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable
Methods¶
-
Microsoft.AspNet.Mvc.ITempDataDictionary.Keep()
Marks all keys in the dictionary for retention.
void Keep()
-
Keep
(System.String)¶ Marks the specified key in the dictionary for retention.
Arguments: - key (System.String) – The key to retain in the dictionary.
void Keep(string key)
-
Microsoft.AspNet.Mvc.ITempDataDictionary.Load()
Loads the dictionary by using the registered [Microsoft.AspNet.Mvc.ITempDataProvider](Microsoft.AspNet.Mvc.ITempDataProvider.yml).
void Load()
-
Peek
(System.String)¶ Returns an object that contains the element that is associated with the specified key, without marking the key for deletion.
Arguments: - key (System.String) – The key of the element to return.
Return type: System.Object
Returns: An object that contains the element that is associated with the specified key.
object Peek(string key)
-
Microsoft.AspNet.Mvc.ITempDataDictionary.Save()
Saves the dictionary by using the registered [Microsoft.AspNet.Mvc.ITempDataProvider](Microsoft.AspNet.Mvc.ITempDataProvider.yml).
void Save()
-