UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.RemoveClaimsAsync 方法

定义

claims从指定的 user中移除给定的 。

public virtual System.Threading.Tasks.Task RemoveClaimsAsync (TUser user, System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> claims, System.Threading.CancellationToken cancellationToken = default);
public override System.Threading.Tasks.Task RemoveClaimsAsync (TUser user, System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> claims, System.Threading.CancellationToken cancellationToken = default);
abstract member RemoveClaimsAsync : 'User * seq<System.Security.Claims.Claim> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.RemoveClaimsAsync : 'User * seq<System.Security.Claims.Claim> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.RemoveClaimsAsync : 'User * seq<System.Security.Claims.Claim> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function RemoveClaimsAsync (user As TUser, claims As IEnumerable(Of Claim), Optional cancellationToken As CancellationToken = Nothing) As Task
Public Overrides Function RemoveClaimsAsync (user As TUser, claims As IEnumerable(Of Claim), Optional cancellationToken As CancellationToken = Nothing) As Task

参数

user
TUser

要从中删除声明的用户。

claims
IEnumerable<Claim>

要移除的声明。

cancellationToken
CancellationToken

CancellationToken,用于传播应取消操作的通知。

返回

表示异步操作的 Task

实现

适用于