UserManager<TUser>.RemoveClaimsAsync 方法

定义

从给定 user中删除指定的 claims

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

参数

user
TUser

要从中删除指定 claims 的用户。

claims
IEnumerable<Claim>

要删除的 Claim的集合。

返回

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

适用于