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

适用于