共用方式為


IUserClaimStore<TUser>.RemoveClaimsAsync 方法

定義

從指定的 移除指定的 claimsuser

public:
 System::Threading::Tasks::Task ^ RemoveClaimsAsync(TUser user, System::Collections::Generic::IEnumerable<System::Security::Claims::Claim ^> ^ claims, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task RemoveClaimsAsync (TUser user, System.Collections.Generic.IEnumerable<System.Security.Claims.Claim> claims, System.Threading.CancellationToken cancellationToken);
abstract member RemoveClaimsAsync : 'User * seq<System.Security.Claims.Claim> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function RemoveClaimsAsync (user As TUser, claims As IEnumerable(Of Claim), cancellationToken As CancellationToken) As Task

參數

user
TUser

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

claims
IEnumerable<Claim>

要移除的 Claim 集合。

cancellationToken
CancellationToken

用於散佈應取消作業通知的 CancellationToken

傳回

工作物件,表示非同步作業。

適用於