Partager via


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)

Syntax

'Declaration
Public Overridable Sub SaveTempData ( _
    controllerContext As ControllerContext, _
    values As IDictionary(Of String, Object) _
)
public virtual void SaveTempData(
    ControllerContext controllerContext,
    IDictionary<string, Object> values
)
public:
virtual void SaveTempData(
    ControllerContext^ controllerContext, 
    IDictionary<String^, Object^>^ values
)

Parameters

Implements

ITempDataProvider.SaveTempData(ControllerContext, IDictionary<String, Object>)

Exceptions

Exception Condition
InvalidOperationException

An error occurred the session context was being retrieved.

See Also

Reference

SessionStateTempDataProvider Class

System.Web.Mvc Namespace