RazorPage<TModel>.ViewData Proprietà

Definizione

Ottiene o imposta il dizionario per i dati della visualizzazione.

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)

Valore della proprietà

Attributi
Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute

Si applica a