RouteView Class

Definition

Displays the specified page component, rendering it inside its layout and any further nested layouts.

public ref class RouteView : Microsoft::AspNetCore::Components::IComponent
public class RouteView : Microsoft.AspNetCore.Components.IComponent
type RouteView = class
    interface IComponent
Public Class RouteView
Implements IComponent
Inheritance
RouteView
Derived
Implements

Constructors

RouteView()

Initializes a new instance of RouteView.

Properties

DefaultLayout

Gets or sets the type of a layout to be used if the page does not declare any layout. If specified, the type must implement IComponent and accept a parameter named Body.

RouteData

Gets or sets the route data. This determines the page that will be displayed and the parameter values that will be supplied to the page.

Methods

Attach(RenderHandle)

Attaches the component to a RenderHandle.

Render(RenderTreeBuilder)

Renders the component.

SetParametersAsync(ParameterView)

Sets parameters supplied by the component's parent in the render tree.

Applies to