IRoleClaimStore<TRole>.AddClaimAsync Method

Definition

Add a new claim to a role as an asynchronous operation.

C#
public System.Threading.Tasks.Task AddClaimAsync (TRole role, System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken = default);

Parameters

role
TRole

The role to add a claim to.

claim
Claim

The Claim 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

منتج الإصدارات
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0