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)


public virtual TempDataDictionary TempData { get; set; }
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