Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Router Class
Definition
- Namespace:
- Microsoft.AspNetCore.Components.Routing
- Assembly:
- Microsoft.AspNetCore.Components.dll
- Package:
- Microsoft.AspNetCore.Components v10.0.0
- Package:
- Microsoft.AspNetCore.Components v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.Components v3.0.3
- Package:
- Microsoft.AspNetCore.Components v3.1.18
- Package:
- Microsoft.AspNetCore.Components v5.0.9
- Package:
- Microsoft.AspNetCore.Components v6.0.6
- Package:
- Microsoft.AspNetCore.Components v7.0.5
- Package:
- Microsoft.AspNetCore.Components v8.0.19
- Package:
- Microsoft.AspNetCore.Components v9.0.8
- Source:
- Router.cs
- Source:
- Router.cs
- Source:
- Router.cs
- Source:
- Router.cs
- Source:
- Router.cs
- Source:
- Router.cs
- Source:
- Router.cs
- Source:
- Router.cs
- Source:
- Router.cs
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
| Name | Description |
|---|---|
| Router() | |
Properties
| Name | Description |
|---|---|
| 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 |
Obsolete.
Gets or sets the content to display when no match is found for the requested route. |
| NotFoundPage |
Gets or sets the page 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.
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
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| IHandleAfterRender.OnAfterRenderAsync() | |
Applies to
Feedback
Was this page helpful?
