Compartir a través de


RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>.AddClaimAsync Método

Definición

Agrega el objeto claim especificado al especificado role.

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

Parámetros

role
TRole

Rol al que se va a agregar la notificación.

claim
Claim

Notificación que se va a agregar al rol.

cancellationToken
CancellationToken

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

Devoluciones

El objeto Task que representa la operación asincrónica.

Implementaciones

Se aplica a