RoleManager<TRole>.RemoveClaimAsync(TRole, Claim) 方法

定义

从角色中删除声明。

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

参数

role
TRole

要从中删除声明的角色。

claim
Claim

要移除的声明。

返回

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

适用于