UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken>.ReplaceClaimAsync(TUser, Claim, Claim, CancellationToken) UserOnlyStore<TUser,TContext,TKey,TUserClaim,TUserLogin,TUserToken>.ReplaceClaimAsync(TUser, Claim, Claim, CancellationToken) Method

Definition

Replaces the claim on the specified user, with the newClaim.

public override System.Threading.Tasks.Task ReplaceClaimAsync (TUser user, System.Security.Claims.Claim claim, System.Security.Claims.Claim newClaim, System.Threading.CancellationToken cancellationToken = null);
override this.ReplaceClaimAsync : 'User * System.Security.Claims.Claim * System.Security.Claims.Claim * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

user
TUser TUser

The user to replace the claim on.

claim
Claim Claim

The claim replace.

newClaim
Claim Claim

The new claim replacing the claim.

cancellationToken
CancellationToken CancellationToken

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

Returns

The Task that represents the asynchronous operation.

Implements

Applies to