Share via


IUserClaimStore<TUser>.AddClaimsAsync Method

Definition

Add claims to a user as an asynchronous operation.

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

Parameters

user
TUser

The user to add the claim to.

claims
IEnumerable<Claim>

The collection of Claims to add.

cancellationToken
CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

The task object representing the asynchronous operation.

Applies to