IUserClaimStore<TUser>.GetUsersForClaimAsync Method

Definition

Returns a list of users who contain the specified Claim.

C#
public System.Threading.Tasks.Task<System.Collections.Generic.IList<TUser>> GetUsersForClaimAsync (System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken);

Parameters

claim
Claim

The claim to look for.

cancellationToken
CancellationToken

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

Returns

Task<IList<TUser>>

A Task<TResult> that represents the result of the asynchronous query, a list of TUser who contain the specified claim.

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