UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.ReplaceClaimAsync 方法

定义

claim 指定 user上的 替换为 newClaim

public abstract System.Threading.Tasks.Task ReplaceClaimAsync (TUser user, System.Security.Claims.Claim claim, System.Security.Claims.Claim newClaim, System.Threading.CancellationToken cancellationToken = default);
abstract member ReplaceClaimAsync : 'User * System.Security.Claims.Claim * System.Security.Claims.Claim * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function ReplaceClaimAsync (user As TUser, claim As Claim, newClaim As Claim, Optional cancellationToken As CancellationToken = Nothing) As Task

参数

user
TUser

要替换声明的用户。

claim
Claim

声明将替换。

newClaim
Claim

替换 claim的新声明。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

表示异步操作的 Task

实现

适用于