Dela via


UserManager<TUser>.GetUsersForClaimAsync(Claim) Method

Definition

Returns a list of users from the user store who have the specified claim.

public:
 virtual System::Threading::Tasks::Task<System::Collections::Generic::IList<TUser> ^> ^ GetUsersForClaimAsync(System::Security::Claims::Claim ^ claim);
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<TUser>> GetUsersForClaimAsync (System.Security.Claims.Claim claim);
abstract member GetUsersForClaimAsync : System.Security.Claims.Claim -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>
override this.GetUsersForClaimAsync : System.Security.Claims.Claim -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>
Public Overridable Function GetUsersForClaimAsync (claim As Claim) As Task(Of IList(Of TUser))

Parameters

claim
Claim

The claim to look for.

Returns

Task<IList<TUser>>

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

Applies to