共用方式為


CookieAuthenticationEvents.CheckSlidingExpiration 方法

定義

叫用以檢查是否應該更新 Cookie。

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

參數

傳回

適用於