Udostępnij za pośrednictwem


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

Definicja

Pobierz oświadczenia skojarzone z określoną role operacją asynchroniczną.

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

Rola, której oświadczenia powinny zostać pobrane.

cancellationToken
CancellationToken

Używane CancellationToken do propagacji powiadomień, że operacja powinna zostać anulowana.

Zwraca

Element Task<TResult> zawierający oświadczenia przyznane roli.

Implementuje

Dotyczy