共用方式為


IUserStore<TUser>.DeleteAsync(TUser, CancellationToken) 方法

定義

從使用者存放區刪除指定的 user

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ DeleteAsync(TUser user, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> DeleteAsync (TUser user, System.Threading.CancellationToken cancellationToken);
abstract member DeleteAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Function DeleteAsync (user As TUser, cancellationToken As CancellationToken) As Task(Of IdentityResult)

參數

user
TUser

要刪除的使用者。

cancellationToken
CancellationToken

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

傳回

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

適用於