SessionStateTempDataProvider.SaveTempData Method (ControllerContext, IDictionary<String, Object>)

 

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)

public virtual void SaveTempData(
	ControllerContext controllerContext,
	IDictionary<stringobject> values
)

Parameters

controllerContext
Type: System.Web.Mvc.ControllerContext

The controller context.

values
Type: System.Collections.Generic.IDictionary<StringObject>

The values.

Exception Condition
InvalidOperationException

An error occurred the session context was being retrieved.

Return to top
Show: