NavigationManagerExtensions.NavigateToLogout 方法

定义

重载

NavigateToLogout(NavigationManager, String)

通过导航到注销终结点启动注销操作。

NavigateToLogout(NavigationManager, String, String)

通过导航到注销终结点启动注销操作。

NavigateToLogout(NavigationManager, String)

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

通过导航到注销终结点启动注销操作。

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)

参数

logoutPath
String

要导航到的路径。

注解

导航包括添加到浏览器历史记录条目的状态,以防止从不同上下文执行注销操作。

适用于

NavigateToLogout(NavigationManager, String, String)

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

通过导航到注销终结点启动注销操作。

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)

参数

logoutPath
String

也是要导航的路径。

returnUrl
String

注销后将用户重定向到的 URL。

注解

导航包括添加到浏览器历史记录条目的状态,以防止从不同上下文执行注销操作。

适用于