共用方式為


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 非同步查詢的 。

適用於