RoleManager<TRole>.DeleteAsync(TRole) 方法

定义

删除指定的 role

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

参数

role
TRole

要删除的角色。

返回

表示 Task 异步操作的 ,其中包含 IdentityResult 用于删除的 。

适用于