Router Class

Definition

A component that supplies route data corresponding to the current navigation state.

public ref class Router : IDisposable, Microsoft::AspNetCore::Components::IComponent, Microsoft::AspNetCore::Components::IHandleAfterRender
public class Router : IDisposable, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleAfterRender
type Router = class
    interface IComponent
    interface IHandleAfterRender
    interface IDisposable
Public Class Router
Implements IComponent, IDisposable, IHandleAfterRender
Inheritance
Router
Implements

Constructors

Router()

Properties

AdditionalAssemblies

Gets or sets a collection of additional assemblies that should be searched for components that can match URIs.

AppAssembly

Gets or sets the assembly that should be searched for components matching the URI.

Found

Gets or sets the content to display when a match is found for the requested route.

Navigating

Get or sets the content to display when asynchronous navigation is in progress.

NotFound

Gets or sets the content to display when no match is found for the requested route.

OnNavigateAsync

Gets or sets a handler that should be called before navigating to a new page.

PreferExactMatches
Obsolete.

Gets or sets a flag to indicate whether route matching should prefer exact matches over wildcards.

This property is obsolete and configuring it does nothing.

Methods

Attach(RenderHandle)

Attaches the component to a RenderHandle.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

SetParametersAsync(ParameterView)

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

Explicit Interface Implementations

IHandleAfterRender.OnAfterRenderAsync()

Applies to