IUserClaimStore<TUser>.AddClaimsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.