共用方式為


ViewPage.SetViewData(ViewDataDictionary) 方法

定義

設定關聯檢視的檢視資料字典。

protected virtual void SetViewData (System.Web.Mvc.ViewDataDictionary viewData);
abstract member SetViewData : System.Web.Mvc.ViewDataDictionary -> unit
override this.SetViewData : System.Web.Mvc.ViewDataDictionary -> unit
Protected Overridable Sub SetViewData (viewData As ViewDataDictionary)

參數

viewData
ViewDataDictionary

要傳遞至檢視的資料字典。

適用於