RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim>.UpdateAsync Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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.