Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

TempDataDictionary.Keep Method (String)

Marks the specified key in the dictionary for retention.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public void Keep(
	string key


Type: System.String

The key to retain in the dictionary.

When a key is marked for retention, the key is retained for the next request.

© 2015 Microsoft