UserManager<TUser>.DeleteAsync(TUser) 方法

定义

从后备存储中删除指定的 user

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ DeleteAsync(TUser user);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> DeleteAsync (TUser user);
abstract member DeleteAsync : 'User -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.DeleteAsync : 'User -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function DeleteAsync (user As TUser) As Task(Of IdentityResult)

参数

user
TUser

要删除的用户。

返回

表示 Task 异步操作的 ,包含 IdentityResult 操作的 。

适用于