共用方式為


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

適用於