Delen via


IUserClaimStore<TUser>.GetUsersForClaimAsync Method

Definition

Returns a list of users who contain the specified Claim.

public:
 System::Threading::Tasks::Task<System::Collections::Generic::IList<TUser> ^> ^ GetUsersForClaimAsync(System::Security::Claims::Claim ^ claim, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IList<TUser>> GetUsersForClaimAsync (System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken);
abstract member GetUsersForClaimAsync : System.Security.Claims.Claim * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>
Public Function GetUsersForClaimAsync (claim As Claim, cancellationToken As CancellationToken) As Task(Of IList(Of TUser))

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