共用方式為


UserManager<TUser>.RemoveClaimAsync(TUser, Claim) 方法

定義

從指定的 user 移除指定的 claim

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

參數

user
TUser

要從中移除指定 claim 之 的使用者。

claim
Claim

要移除的 Claim

傳回

Task 表示非同步作業,其中包含 IdentityResult 作業的 。

適用於