共用方式為


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 作業的 。

適用於