共用方式為


IUserClaimStore<TUser>.ReplaceClaimAsync 方法

定義

將指定的 上指定的 claimuser 取代為 newClaim

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

參數

user
TUser

要取代宣告的使用者。

claim
Claim

要取代的宣告。

newClaim
Claim

要取代現有 claim 宣告的新宣告。

cancellationToken
CancellationToken

用於散佈應取消作業通知的 CancellationToken

傳回

工作物件,表示非同步作業。

適用於