CookieAuthenticationEvents.OnValidatePrincipal 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
调用以验证主体。
public:
property Func<Microsoft::AspNetCore::Authentication::Cookies::CookieValidatePrincipalContext ^, System::Threading::Tasks::Task ^> ^ OnValidatePrincipal { Func<Microsoft::AspNetCore::Authentication::Cookies::CookieValidatePrincipalContext ^, System::Threading::Tasks::Task ^> ^ get(); void set(Func<Microsoft::AspNetCore::Authentication::Cookies::CookieValidatePrincipalContext ^, System::Threading::Tasks::Task ^> ^ value); };
public Func<Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext,System.Threading.Tasks.Task> OnValidatePrincipal { get; set; }
member this.OnValidatePrincipal : Func<Microsoft.AspNetCore.Authentication.Cookies.CookieValidatePrincipalContext, System.Threading.Tasks.Task> with get, set
Public Property OnValidatePrincipal As Func(Of CookieValidatePrincipalContext, Task)