Compartir a través de


UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.GetUsersInRoleAsync Método

Definición

Recupera todos los usuarios del rol especificado.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<TUser>> GetUsersInRoleAsync (string normalizedRoleName, System.Threading.CancellationToken cancellationToken = default);
public override System.Threading.Tasks.Task<System.Collections.Generic.IList<TUser>> GetUsersInRoleAsync (string normalizedRoleName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetUsersInRoleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>
override this.GetUsersInRoleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>
override this.GetUsersInRoleAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>
Public Overridable Function GetUsersInRoleAsync (normalizedRoleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of TUser))
Public Overrides Function GetUsersInRoleAsync (normalizedRoleName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of TUser))

Parámetros

normalizedRoleName
String

Rol cuyos usuarios deben recuperarse.

cancellationToken
CancellationToken

El objeto CancellationToken que se usa para propagar notificaciones de que se debe cancelar la operación.

Devoluciones

Task<IList<TUser>>

Task contiene una lista de usuarios, si los hay, que están en el rol especificado.

Implementaciones

Se aplica a