共用方式為


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 刪除的 。

適用於