IRoleStore<TRole>.DeleteAsync(TRole, CancellationToken) 方法

定义

以异步操作的形式从存储区中删除角色。

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

参数

role
TRole

要从存储区中删除的角色。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

一个 Task<TResult> ,它 IdentityResult 表示异步查询的 。

适用于