共用方式為


ControllerBase.ViewData 屬性

定義

取得或設定檢視資料的字典。

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

屬性值

檢視資料的字典。

適用於