TempDataDictionary.Keep Method
Marks keys in the dictionary for retention.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | Keep() | Marks all keys in the dictionary for retention. |
![]() | Keep(String) | Marks the specified key in the dictionary for retention. |
When a key is marked for retention, the key is retained for the next request.
TempDataDictionary.Keep Method ()
Marks all keys in the dictionary for retention.
When a key is marked for retention, the key is retained for the next request. The RedirectToAction method calls the Keep method, which specifies that all data is retained for the next request.
TempDataDictionary.Keep Method (String)
Marks the specified key in the dictionary for retention.
When a key is marked for retention, the key is retained for the next request.
Show:
