Share via


IRoleStore<TRole>.UpdateAsync(TRole, CancellationToken) Methode

Definition

Updates einer Rolle in einem Speicher als asynchroner Vorgang.

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ UpdateAsync(TRole role, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> UpdateAsync (TRole role, System.Threading.CancellationToken cancellationToken);
abstract member UpdateAsync : 'Role * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Function UpdateAsync (role As TRole, cancellationToken As CancellationToken) As Task(Of IdentityResult)

Parameter

role
TRole

Die Rolle, die im Speicher aktualisiert werden soll.

cancellationToken
CancellationToken

Die CancellationToken-Struktur, mit der Benachrichtigungen verteilt werden, dass der Vorgang abgebrochen werden muss.

Gibt zurück

Ein Task<TResult> , der die IdentityResult der asynchronen Abfrage darstellt.

Gilt für: