Table of Contents

Interface ITempDataProvider

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Defines the contract for temporary-data providers that store data that is viewed on the next request.

public interface ITempDataProvider

Methods

LoadTempData(ControllerContext)

Loads the temporary data.

IDictionary<string, object> LoadTempData(ControllerContext controllerContext)

Parameters

controllerContext ControllerContext

The controller context.

Returns

IDictionary<string, object>

The temporary data.

SaveTempData(ControllerContext, IDictionary<string, object>)

Saves the temporary data.

void SaveTempData(ControllerContext controllerContext, IDictionary<string, object> values)

Parameters

controllerContext ControllerContext

The controller context.

values IDictionary<string, object>

The values.