UserManager<TUser>.GetUsersForClaimAsync(Claim) 方法

定义

从具有指定 的用户存储区返回用户列表 claim

public:
 virtual System::Threading::Tasks::Task<System::Collections::Generic::IList<TUser> ^> ^ GetUsersForClaimAsync(System::Security::Claims::Claim ^ claim);
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<TUser>> GetUsersForClaimAsync (System.Security.Claims.Claim claim);
abstract member GetUsersForClaimAsync : System.Security.Claims.Claim -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>
override this.GetUsersForClaimAsync : System.Security.Claims.Claim -> System.Threading.Tasks.Task<System.Collections.Generic.IList<'User>>
Public Overridable Function GetUsersForClaimAsync (claim As Claim) As Task(Of IList(Of TUser))

参数

claim
Claim

要查找的 声明。

返回

Task<IList<TUser>>

Task<TResult> 个 ,表示异步查询的结果,即 TUser 具有指定声明的 的列表。

适用于