ViewContext.TempData Property

 

Gets data that is associated with this request and that is available for only one request.

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

Syntax

public virtual TempDataDictionary TempData { get; set; }
public:
property TempDataDictionary^ TempData {
    virtual TempDataDictionary^ get();
    virtual void set(TempDataDictionary^ value);
}
abstract TempData : TempDataDictionary with get, set
override TempData : TempDataDictionary with get, set
Public Overridable Property TempData As TempDataDictionary

Property Value

Type: System.Web.Mvc.TempDataDictionary

The temporary data.

See Also

ViewContext Class
System.Web.Mvc Namespace

Return to top