Bagikan melalui


RoleStore<TRole,TContext,TKey,TUserRole,TRoleClaim>.UpdateAsync Metode

Definisi

Updates peran di penyimpanan sebagai operasi asinkron.

public virtual 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>
override this.UpdateAsync : 'Role * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable 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