UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.GetUsersForClaimAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves all users with the specified claim.
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<TUser>> GetUsersForClaimAsync (System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken = default);
public override System.Threading.Tasks.Task<System.Collections.Generic.IList<TUser>> GetUsersForClaimAsync (System.Security.Claims.Claim claim, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUsersForClaimAsync : System.Security.Claims.Claim * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>
override this.GetUsersForClaimAsync : System.Security.Claims.Claim * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>
override this.GetUsersForClaimAsync : System.Security.Claims.Claim * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>
Public Overridable Function GetUsersForClaimAsync (claim As Claim, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of TUser))
Public Overrides Function GetUsersForClaimAsync (claim As Claim, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of TUser))
Parameters
- claim
- Claim
The claim whose users should be retrieved.
- cancellationToken
- CancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.
Returns
The Task contains a list of users, if any, that contain the specified claim.