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)

'Declaration
Public Property TempDataProvider As ITempDataProvider
'Usage
Dim instance As Controller
Dim value As ITempDataProvider

value = instance.TempDataProvider

instance.TempDataProvider = value

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.

Show:
© 2014 Microsoft