Bagikan melalui


RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim>.UpdateAsync Metode

Definisi

Updates peran di penyimpanan sebagai operasi asinkron.

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

Parameter

role
TRole

Peran untuk diperbarui di toko.

cancellationToken
CancellationToken

yang CancellationToken digunakan untuk menyebarluaskan pemberitahuan bahwa operasi harus dibatalkan.

Mengembalikan

Task<TResult> yang mewakili IdentityResult kueri asinkron.

Penerapan

Berlaku untuk