Share via


RazorView Class

Definition

Default implementation for IView that executes one or more IRazorPage as parts of its execution.

public ref class RazorView : Microsoft::AspNetCore::Mvc::ViewEngines::IView
public class RazorView : Microsoft.AspNetCore.Mvc.ViewEngines.IView
type RazorView = class
    interface IView
Public Class RazorView
Implements IView
Inheritance
RazorView
Implements

Constructors

RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder, DiagnosticListener)

Initializes a new instance of RazorView

RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder, DiagnosticSource)

Initializes a new instance of RazorView

RazorView(IRazorViewEngine, IRazorPageActivator, IReadOnlyList<IRazorPage>, IRazorPage, HtmlEncoder)

Initializes a new instance of RazorView

Properties

Path

Gets the path of the view as resolved by the IViewEngine.

RazorPage

Gets IRazorPage instance that the views executes on.

ViewStartPages

Gets the sequence of _ViewStart IRazorPage instances that are executed by this view.

Methods

RenderAsync(ViewContext)

Asynchronously renders the view using the specified context.

Applies to