共用方式為


UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.UpdateAsync 方法

定義

user更新使用者存放區中指定的 。

public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> UpdateAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);
public override System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> UpdateAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.UpdateAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.UpdateAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function UpdateAsync (user As TUser, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IdentityResult)
Public Overrides Function UpdateAsync (user As TUser, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IdentityResult)

參數

user
TUser

要更新的使用者。

cancellationToken
CancellationToken

用於散佈應取消作業通知的 CancellationToken

傳回

Task 表示非同步作業,其中包含 IdentityResult 更新作業的 。

實作

適用於