共用方式為


CookieAuthenticationEvents.RedirectToLogout 方法

定義

多載

RedirectToLogout(CookieRedirectContext)

叫用相關的委派方法,以實作 介面方法。

RedirectToLogout(RedirectContext<CookieAuthenticationOptions>)

當用戶端重新導向至登出 URL 時叫用。

RedirectToLogout(CookieRedirectContext)

叫用相關的委派方法,以實作 介面方法。

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

參數

context
CookieRedirectContext

包含事件的相關資訊

傳回

實作

適用於

RedirectToLogout(RedirectContext<CookieAuthenticationOptions>)

來源:
CookieAuthenticationEvents.cs
來源:
CookieAuthenticationEvents.cs
來源:
CookieAuthenticationEvents.cs

當用戶端重新導向至登出 URL 時叫用。

public:
 virtual System::Threading::Tasks::Task ^ RedirectToLogout(Microsoft::AspNetCore::Authentication::RedirectContext<Microsoft::AspNetCore::Authentication::Cookies::CookieAuthenticationOptions ^> ^ context);
public virtual System.Threading.Tasks.Task RedirectToLogout (Microsoft.AspNetCore.Authentication.RedirectContext<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> context);
abstract member RedirectToLogout : Microsoft.AspNetCore.Authentication.RedirectContext<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> System.Threading.Tasks.Task
override this.RedirectToLogout : Microsoft.AspNetCore.Authentication.RedirectContext<Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions> -> System.Threading.Tasks.Task
Public Overridable Function RedirectToLogout (context As RedirectContext(Of CookieAuthenticationOptions)) As Task

參數

傳回

適用於