RazorPage<TModel>.ViewData 属性

定义

获取或设置视图数据的字典。

public:
 property Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary<TModel> ^ ViewData { Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary<TModel> ^ get(); void set(Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary<TModel> ^ value); };
[Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInject]
public Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<TModel> ViewData { get; set; }
[<Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInject>]
member this.ViewData : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<'Model> with get, set
Public Property ViewData As ViewDataDictionary(Of TModel)

属性值

属性
Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute

适用于