Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

NavigationManager.NavigateTo Method

Definition

Namespace:
Microsoft.AspNetCore.Components
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 v6.0.6
Package:
Microsoft.AspNetCore.Components v7.0.5
Package:
Microsoft.AspNetCore.Components v8.0.19
Package:
Microsoft.AspNetCore.Components v9.0.8
Package:
Microsoft.AspNetCore.Components v3.0.3
Package:
Microsoft.AspNetCore.Components v3.1.18
Package:
Microsoft.AspNetCore.Components v5.0.9

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.

Overloads

Name Description
NavigateTo(String, NavigationOptions)

Navigates to the specified URI.

NavigateTo(String, Boolean)

Navigates to the specified URI.

NavigateTo(String, Boolean, Boolean)

Navigates to the specified URI.

NavigateTo(String, NavigationOptions)

Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs

Navigates to the specified URI.

public void NavigateTo(string uri, Microsoft.AspNetCore.Components.NavigationOptions options);
member this.NavigateTo : string * Microsoft.AspNetCore.Components.NavigationOptions -> unit
Public Sub NavigateTo (uri As String, options As NavigationOptions)

Parameters

uri
String

The destination URI. This can be absolute, or relative to the base URI (as returned by BaseUri).

options
NavigationOptions

Provides additional NavigationOptions.

Applies to

NavigateTo(String, Boolean)

Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs

Navigates to the specified URI.

public void NavigateTo(string uri, bool forceLoad);
public void NavigateTo(string uri, bool forceLoad = false);
member this.NavigateTo : string * bool -> unit
Public Sub NavigateTo (uri As String, forceLoad As Boolean)
Public Sub NavigateTo (uri As String, Optional forceLoad As Boolean = false)

Parameters

uri
String

The destination URI. This can be absolute, or relative to the base URI (as returned by BaseUri).

forceLoad
Boolean

If true, bypasses client-side routing and forces the browser to load the new page from the server, whether or not the URI would normally be handled by the client-side router.

Applies to

NavigateTo(String, Boolean, Boolean)

Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs
Source:
NavigationManager.cs

Navigates to the specified URI.

public void NavigateTo(string uri, bool forceLoad = false, bool replace = false);
member this.NavigateTo : string * bool * bool -> unit
Public Sub NavigateTo (uri As String, Optional forceLoad As Boolean = false, Optional replace As Boolean = false)

Parameters

uri
String

The destination URI. This can be absolute, or relative to the base URI (as returned by BaseUri).

forceLoad
Boolean

If true, bypasses client-side routing and forces the browser to load the new page from the server, whether or not the URI would normally be handled by the client-side router.

replace
Boolean

If true, replaces the current entry in the history stack. If false, appends the new entry to the history stack.

Applies to


Feedback

Was this page helpful?