NavigationManagerExtensions.NavigateToLogout Method
Definition
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
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)
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
- manager
- NavigationManager
The NavigationManager.
- 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)
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
- manager
- NavigationManager
The NavigationManager.
- 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.