共用方式為


ViewContext.TempData 屬性

定義

取得與這個要求相關聯而且只能用於一個要求的資料。

public virtual System.Web.Mvc.TempDataDictionary TempData { get; set; }
member this.TempData : System.Web.Mvc.TempDataDictionary with get, set
Public Overridable Property TempData As TempDataDictionary

屬性值

暫存資料。

適用於