共用方式為


ViewContext.ViewData 屬性

定義

取得傳遞至檢視的檢視資料。

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

屬性值

檢視資料。

適用於