Freigeben über


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

'Declaration
Public Overridable Property TempData As TempDataDictionary
    Get
    Set
public virtual TempDataDictionary TempData { get; set; }
public:
virtual property TempDataDictionary^ TempData {
    TempDataDictionary^ get ();
    void set (TempDataDictionary^ value);
}

Property Value

Type: System.Web.Mvc.TempDataDictionary
The temporary data.

See Also

Reference

ViewContext Class

System.Web.Mvc Namespace