UserManager<TUser>.AddLoginAsync(TUser, UserLoginInfo) Method

Definition

Adds an external UserLoginInfo to the specified 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)

Parameters

user
TUser

The user to add the login to.

login
UserLoginInfo

The external UserLoginInfo to add to the specified user.

Returns

The Task that represents the asynchronous operation, containing the IdentityResult of the operation.

Applies to