UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.AddClaimsAsync Metodo

Definizione

Aggiunge l'oggetto specificato all'oggetto claims specificato user.

public abstract System.Threading.Tasks.Task AddClaimsAsync (TUser user, System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> claims, System.Threading.CancellationToken cancellationToken = default);
abstract member AddClaimsAsync : 'User * seq<System.Security.Claims.Claim> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function AddClaimsAsync (user As TUser, claims As IEnumerable(Of Claim), Optional cancellationToken As CancellationToken = Nothing) As Task

Parametri

user
TUser

Utente a cui aggiungere l'attestazione.

claims
IEnumerable<Claim>

Attestazione da aggiungere all'utente.

cancellationToken
CancellationToken

Oggetto CancellationToken usato per propagare le notifiche di richiesta di annullamento dell'operazione.

Restituisce

Oggetto Task che rappresenta l'operazione asincrona.

Implementazioni

Si applica a