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 删除操作的 。

适用于