共用方式為


CookieAuthenticationEvents.OnCheckSlidingExpiration 屬性

定義

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

public Func<Microsoft.AspNetCore.Authentication.Cookies.CookieSlidingExpirationContext,System.Threading.Tasks.Task> OnCheckSlidingExpiration { get; set; }
member this.OnCheckSlidingExpiration : Func<Microsoft.AspNetCore.Authentication.Cookies.CookieSlidingExpirationContext, System.Threading.Tasks.Task> with get, set
Public Property OnCheckSlidingExpiration As Func(Of CookieSlidingExpirationContext, Task)

屬性值

適用於