ITempDataProvider Interface

Summary

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

Syntax

public interface ITempDataProvider

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.ITempDataProvider

Methods

LoadTempData(HttpContext)

Loads the temporary data.

Arguments:
  • context (HttpContext) – The @!:HttpContext-.
Return type:

System.Collections.Generic.IDictionary{System.String,System.Object}

Returns:

The temporary data.

IDictionary<string, object> LoadTempData(HttpContext context)
SaveTempData(HttpContext, System.Collections.Generic.IDictionary<System.String, System.Object>)

Saves the temporary data.

Arguments:
  • context (HttpContext) – The @!:HttpContext-.
  • values (System.Collections.Generic.IDictionary{System.String,System.Object}) – The values to save.
void SaveTempData(HttpContext context, IDictionary<string, object> values)