IUserClaimStore<TUser>.GetUsersForClaimAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a list of users who contain the specified 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))
Parameters
- claim
- Claim
The claim to look for.
- cancellationToken
- CancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.
Returns
A Task<TResult> that represents the result of the asynchronous query, a list of TUser
who
contain the specified claim.