Compartilhar via


TempDataDictionary.Keep Method

Marks all keys in the dictionary for retention.

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

Syntax

'Declaration
Public Sub Keep
public void Keep()
public:
void Keep()

Remarks

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.

See Also

Reference

TempDataDictionary Class

Keep Overload

System.Web.Mvc Namespace