Sdílet prostřednictvím


RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>.GetClaimsAsync Metoda

Definice

Získejte deklarace identity přidružené k zadané role jako asynchronní operace.

public System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>> GetClaimsAsync (TRole role, System.Threading.CancellationToken cancellationToken = default);
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>> GetClaimsAsync (TRole role, System.Threading.CancellationToken cancellationToken = default);
abstract member GetClaimsAsync : 'Role * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>>
override this.GetClaimsAsync : 'Role * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>>
Public Function GetClaimsAsync (role As TRole, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of Claim))
Public Overridable Function GetClaimsAsync (role As TRole, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of Claim))

Parametry

role
TRole

Role, jejíž deklarace identity se mají načíst.

cancellationToken
CancellationToken

Slouží CancellationToken k šíření oznámení, že operace by měla být zrušena.

Návraty

A Task<TResult> , který obsahuje deklarace identity udělené roli.

Implementuje

Platí pro