共用方式為


SecurityStampValidatorOptions.OnRefreshingPrincipal 屬性

定義

當預設安全性戳記驗證程式取代 Cookie 中的 ClaimsPrincipal 時叫用。

public:
 property Func<Microsoft::AspNetCore::Identity::SecurityStampRefreshingPrincipalContext ^, System::Threading::Tasks::Task ^> ^ OnRefreshingPrincipal { Func<Microsoft::AspNetCore::Identity::SecurityStampRefreshingPrincipalContext ^, System::Threading::Tasks::Task ^> ^ get(); void set(Func<Microsoft::AspNetCore::Identity::SecurityStampRefreshingPrincipalContext ^, System::Threading::Tasks::Task ^> ^ value); };
public Func<Microsoft.AspNetCore.Identity.SecurityStampRefreshingPrincipalContext,System.Threading.Tasks.Task> OnRefreshingPrincipal { get; set; }
public Func<Microsoft.AspNetCore.Identity.SecurityStampRefreshingPrincipalContext,System.Threading.Tasks.Task>? OnRefreshingPrincipal { get; set; }
member this.OnRefreshingPrincipal : Func<Microsoft.AspNetCore.Identity.SecurityStampRefreshingPrincipalContext, System.Threading.Tasks.Task> with get, set
Public Property OnRefreshingPrincipal As Func(Of SecurityStampRefreshingPrincipalContext, Task)

屬性值

適用於