Note

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

Access to this page requires authorization. You can try .

NavigationManagerExtensions.NavigateToLogout Method

Definition

Namespace:
Microsoft.AspNetCore.Components.WebAssembly.Authentication
Assembly:
Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll
Package:
Microsoft.AspNetCore.Components.WebAssembly.Authentication v10.0.0
Package:
Microsoft.AspNetCore.Components.WebAssembly.Authentication v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Components.WebAssembly.Authentication v7.0.5
Package:
Microsoft.AspNetCore.Components.WebAssembly.Authentication v8.0.19
Package:
Microsoft.AspNetCore.Components.WebAssembly.Authentication v9.0.8

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
NavigateToLogout(NavigationManager, String)

Initiates a logout operation by navigating to the log out endpoint.

NavigateToLogout(NavigationManager, String, String)

Initiates a logout operation by navigating to the log out endpoint.

NavigateToLogout(NavigationManager, String)

Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs

Initiates a logout operation by navigating to the log out endpoint.

public static void NavigateToLogout(this Microsoft.AspNetCore.Components.NavigationManager manager, string logoutPath);
static member NavigateToLogout : Microsoft.AspNetCore.Components.NavigationManager * string -> unit
<Extension()>
Public Sub NavigateToLogout (manager As NavigationManager, logoutPath As String)

Parameters

logoutPath
String

The path to navigate to.

Remarks

The navigation includes state that is added to the browser history entry to prevent logout operations performed from different contexts.

Applies to

NavigateToLogout(NavigationManager, String, String)

Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs
Source:
NavigationManagerExtensions.cs

Initiates a logout operation by navigating to the log out endpoint.

public static void NavigateToLogout(this Microsoft.AspNetCore.Components.NavigationManager manager, string logoutPath, string? returnUrl);
public static void NavigateToLogout(this Microsoft.AspNetCore.Components.NavigationManager manager, string logoutPath, string returnUrl);
static member NavigateToLogout : Microsoft.AspNetCore.Components.NavigationManager * string * string -> unit
<Extension()>
Public Sub NavigateToLogout (manager As NavigationManager, logoutPath As String, returnUrl As String)

Parameters

logoutPath
String

The path to navigate too.

returnUrl
String

The url to redirect the user to after logging out.

Remarks

The navigation includes state that is added to the browser history entry to prevent logout operations performed from different contexts.

Applies to


Feedback

Was this page helpful?