Dela via


IRazorPage Interface

Definition

Represents properties and methods that are used by RazorView for execution.

public interface class IRazorPage
public interface IRazorPage
type IRazorPage = interface
Public Interface IRazorPage
Derived

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