Export (0) Print
Expand All

Controller.TempDataProvider Property

Gets the temporary data provider object that is used to store data for the next request.

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

public ITempDataProvider TempDataProvider { get; set; }

Property Value

Type: System.Web.Mvc.ITempDataProvider
The temporary-data provider.

The default temporary-data provider, SessionStateTempDataProvider, relies on session state. If session state is not enabled, any attempt to access the temporary-data provider raises an exception.

Community Additions

Show:
© 2014 Microsoft