共用方式為


HtmlHelper<TModel>.ViewData 屬性

定義

取得目前的檢視資料。

public:
 property Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary<TModel> ^ ViewData { Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary<TModel> ^ get(); };
public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<TModel> ViewData { get; }
member this.ViewData : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<'Model>
Public ReadOnly Property ViewData As ViewDataDictionary(Of TModel)

屬性值

實作

適用於