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);
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>
Public Overridable Function RemoveClaimAsync (user As TUser, claim As Claim) As Task(Of IdentityResult)

Parameters

user
TUser

The user to remove the specified claim from.

claim
Claim

The Claim to remove.

Returns

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

Applies to