Compartilhar via


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)

Syntax

'Declaration
Public Property TempDataProvider As ITempDataProvider
    Get
    Set
public ITempDataProvider TempDataProvider { get; set; }
public:
property ITempDataProvider^ TempDataProvider {
    ITempDataProvider^ get ();
    void set (ITempDataProvider^ value);
}

Property Value

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

Remarks

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.

See Also

Reference

Controller Class

System.Web.Mvc Namespace