UserManager<TUser>.RemoveClaimAsync(TUser, Claim) UserManager<TUser>.RemoveClaimAsync(TUser, Claim) Method

Definition

Removes the specified claim from the given user.

public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> RemoveClaimAsync (TUser user, System.Security.Claims.Claim claim);
abstract member RemoveClaimAsync : 'User * System.Security.Claims.Claim -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.RemoveClaimAsync : 'User * System.Security.Claims.Claim -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>

Parameters

user
TUser TUser

The user to remove the specified claim from.

claim
Claim Claim

The Claim to remove.

Returns

The Task that represents the asynchronous operation, containing the IdentityResult of the operation.

Applies to