共用方式為


IAuthenticationSignInHandler.SignInAsync 方法

定義

處理登入。

public:
 System::Threading::Tasks::Task ^ SignInAsync(System::Security::Claims::ClaimsPrincipal ^ user, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public System.Threading.Tasks.Task SignInAsync (System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public System.Threading.Tasks.Task SignInAsync (System.Security.Claims.ClaimsPrincipal user, Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
abstract member SignInAsync : System.Security.Claims.ClaimsPrincipal * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Public Function SignInAsync (user As ClaimsPrincipal, properties As AuthenticationProperties) As Task

參數

user
ClaimsPrincipal

ClaimsPrincipal使用者。

properties
AuthenticationProperties

AuthenticationProperties 其中包含使用驗證抵達的額外中繼資料。

傳回

工作。

適用於