Share via


IUserClaimStore<TUser>.GetUsersForClaimAsync 方法

定义

返回包含指定 Claim的用户的列表。

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

参数

claim
Claim

要查找的声明。

cancellationToken
CancellationToken

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

返回

Task<IList<TUser>>

一个 Task<TResult> ,它表示异步查询的结果,包含指定声明的人员的列表 TUser

适用于