Freigeben über


RazorPage<TModel>.ViewData Eigenschaft

Definition

Ruft das Wörterbuch für Ansichtsdaten ab bzw. legt es fest.

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)

Eigenschaftswert

Attribute
Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute

Gilt für: