Partager via


UserManager<TUser>.ReplaceClaimAsync(TUser, Claim, Claim) Méthode

Définition

Remplace le donné claim sur le spécifié par user le newClaim

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ ReplaceClaimAsync(TUser user, System::Security::Claims::Claim ^ claim, System::Security::Claims::Claim ^ newClaim);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ReplaceClaimAsync (TUser user, System.Security.Claims.Claim claim, System.Security.Claims.Claim newClaim);
abstract member ReplaceClaimAsync : 'User * System.Security.Claims.Claim * System.Security.Claims.Claim -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.ReplaceClaimAsync : 'User * System.Security.Claims.Claim * System.Security.Claims.Claim -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function ReplaceClaimAsync (user As TUser, claim As Claim, newClaim As Claim) As Task(Of IdentityResult)

Paramètres

user
TUser

Utilisateur sur lequel remplacer la revendication.

claim
Claim

Revendication à remplacer.

newClaim
Claim

Nouvelle revendication par laquelle remplacer l’existant claim .

Retours

Task qui représente l’opération asynchrone, contenant le IdentityResult de l’opération.

S’applique à