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)

'Declaration
Public Sub Keep ( _
	key As String _
)
'Usage
Dim instance As TempDataDictionary 
Dim key As String

instance.Keep(key)

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.

Show: