SessionStateTempDataProvider.SaveTempData Method

Saves the specified values in the temporary data dictionary by using the specified controller context.

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

'Declaration
Public Overridable Sub SaveTempData ( _
	controllerContext As ControllerContext, _
	values As IDictionary(Of String, Object) _
)
'Usage
Dim instance As SessionStateTempDataProvider 
Dim controllerContext As ControllerContext 
Dim values As IDictionary(Of String, Object)

instance.SaveTempData(controllerContext, _
	values)

Parameters

controllerContext
Type: System.Web.Mvc.ControllerContext

The controller context.

values
Type: System.Collections.Generic.IDictionary(Of String, Object)

The values.

Implements

ITempDataProvider.SaveTempData(ControllerContext, IDictionary(Of String, Object))

ExceptionCondition
InvalidOperationException

An error occurred the session context was being retrieved.

Show: