RazorPageAdapter Class

Definition

Implements IRazorPage so that RazorPageBase-derived classes don't get activated twice. The page gets activated before handler methods run, but the RazorView will also activate each page.

public ref class RazorPageAdapter : Microsoft::AspNetCore::Mvc::Razor::IRazorPage
public class RazorPageAdapter : Microsoft.AspNetCore.Mvc.Razor.IRazorPage
type RazorPageAdapter = class
    interface IRazorPage
Public Class RazorPageAdapter
Implements IRazorPage
Inheritance
RazorPageAdapter
Implements

Constructors

RazorPageAdapter(RazorPageBase)
RazorPageAdapter(RazorPageBase, Type)

Instantiates a new instance of RazorPageAdapter.

Properties

BodyContent

Gets or sets the body content.

IsLayoutBeingRendered

Gets or sets a flag that determines if the layout of this page is being rendered.

Layout

Gets or sets the path of a layout page.

Path

Gets the application base relative path to the page.

PreviousSectionWriters

Gets or sets the sections that can be rendered by this page.

SectionWriters

Gets the sections that are defined by this page.

ViewContext

Gets or sets the view context of the rendering view.

Methods

EnsureRenderedBodyOrSections()

Verifies that all sections defined in PreviousSectionWriters were rendered, or the body was rendered if no sections were defined.

ExecuteAsync()

Renders the page and writes the output to the Writer.

Applies to