ICookieAuthenticationEvents.RedirectToLogin(CookieRedirectContext) 方法

定义

当登录导致 Cookie 中间件中的重定向时调用。

public:
 System::Threading::Tasks::Task ^ RedirectToLogin(Microsoft::AspNetCore::Authentication::Cookies::CookieRedirectContext ^ context);
public System.Threading.Tasks.Task RedirectToLogin (Microsoft.AspNetCore.Authentication.Cookies.CookieRedirectContext context);
abstract member RedirectToLogin : Microsoft.AspNetCore.Authentication.Cookies.CookieRedirectContext -> System.Threading.Tasks.Task
Public Function RedirectToLogin (context As CookieRedirectContext) As Task

参数

context
CookieRedirectContext

包含有关事件的信息

返回

适用于