UserManager<TUser>.AddLoginAsync(TUser, UserLoginInfo) 方法

定义

将外部 UserLoginInfo 添加到指定的 user

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ AddLoginAsync(TUser user, Microsoft::AspNetCore::Identity::UserLoginInfo ^ login);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> AddLoginAsync (TUser user, Microsoft.AspNetCore.Identity.UserLoginInfo login);
abstract member AddLoginAsync : 'User * Microsoft.AspNetCore.Identity.UserLoginInfo -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.AddLoginAsync : 'User * Microsoft.AspNetCore.Identity.UserLoginInfo -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function AddLoginAsync (user As TUser, login As UserLoginInfo) As Task(Of IdentityResult)

参数

user
TUser

要向其添加登录名的用户。

login
UserLoginInfo

要添加到指定 user的 外部UserLoginInfo

返回

表示 Task 异步操作的 ,包含 IdentityResult 操作的 。

适用于