// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; namespace Microsoft.AspNet.Mvc { /// /// Represents a set of data that persists only from one request to the next. /// public interface ITempDataDictionary : IDictionary { /// /// Loads the dictionary by using the registered . /// void Load(); /// /// Saves the dictionary by using the registered . /// void Save(); /// /// Marks all keys in the dictionary for retention. /// void Keep(); /// /// Marks the specified key in the dictionary for retention. /// /// The key to retain in the dictionary. void Keep(string key); /// /// Returns an object that contains the element that is associated with the specified key, /// without marking the key for deletion. /// /// The key of the element to return. /// An object that contains the element that is associated with the specified key. object Peek(string key); } }