UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.AddLoginAsync Método

Definição

Adiciona o login determinado ao especificado user.

public virtual System.Threading.Tasks.Task AddLoginAsync (TUser user, Microsoft.AspNetCore.Identity.UserLoginInfo login, System.Threading.CancellationToken cancellationToken = default);
public override System.Threading.Tasks.Task AddLoginAsync (TUser user, Microsoft.AspNetCore.Identity.UserLoginInfo login, System.Threading.CancellationToken cancellationToken = default);
abstract member AddLoginAsync : 'User * Microsoft.AspNetCore.Identity.UserLoginInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.AddLoginAsync : 'User * Microsoft.AspNetCore.Identity.UserLoginInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.AddLoginAsync : 'User * Microsoft.AspNetCore.Identity.UserLoginInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function AddLoginAsync (user As TUser, login As UserLoginInfo, Optional cancellationToken As CancellationToken = Nothing) As Task
Public Overrides Function AddLoginAsync (user As TUser, login As UserLoginInfo, Optional cancellationToken As CancellationToken = Nothing) As Task

Parâmetros

user
TUser

O usuário ao qual adicionar o logon.

login
UserLoginInfo

O logon a ser adicionado ao usuário.

cancellationToken
CancellationToken

O CancellationToken usado para propagar notificações de que a operação deve ser cancelada.

Retornos

A Task que representa a operação assíncrona.

Implementações

Aplica-se a