Share via


NavigationManagerExtensions.NavigateToLogout Method

Definition

Overloads

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

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

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