IUserClaimStore<TUser>.RemoveClaimsAsync Method

Definition

Removes the specified claims from the given user.

C#
public System.Threading.Tasks.Task RemoveClaimsAsync (TUser user, System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> claims, System.Threading.CancellationToken cancellationToken);

Parameters

user
TUser

The user to remove the specified claims from.

claims
IEnumerable<Claim>

A collection of Claims to remove.

cancellationToken
CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

The task object representing the asynchronous operation.

Applies to

منتج الإصدارات
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0