TempDataDictionary.Keep Method

 

Marks keys in the dictionary for retention.

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

NameDescription
System_CAPS_pubmethodKeep()

Marks all keys in the dictionary for retention.

System_CAPS_pubmethodKeep(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.

Return to top

TempDataDictionary.Keep Method ()

Marks all keys in the dictionary for retention.

No code example is currently available or this language may not be supported.

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.

Return to top

TempDataDictionary.Keep Method (String)

Marks the specified key in the dictionary for retention.

No code example is currently available or this language may not be supported.

Parameters

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.

Return to top
Show: