RazorPage<TModel> Class¶
Represents the properties and methods that are needed in order to render a view that uses Razor syntax.
- Namespace
Microsoft.AspNetCore.Mvc.Razor- Assemblies
- Microsoft.AspNetCore.Mvc.Razor
Syntax¶
public abstract class RazorPage<TModel> : RazorPage, IRazorPage
-
class
Microsoft.AspNetCore.Mvc.Razor.RazorPage<TModel>¶
Properties¶
-
Microsoft.AspNetCore.Mvc.Razor.RazorPage<TModel>.Model¶ Gets the Model property of the
Microsoft.AspNetCore.Mvc.Razor.RazorPage`1.ViewDataproperty.Return type: TModel public TModel Model { get; }
-
Microsoft.AspNetCore.Mvc.Razor.RazorPage<TModel>.ViewData¶ Gets or sets the dictionary for view data.
Return type: Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<TModel> public ViewDataDictionary<TModel> ViewData { get; set; }
-