IUserClaimStore<TUser>.GetClaimsAsync(TUser, CancellationToken) 方法

定义

获取作为异步操作属于指定 userClaim的列表。

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

参数

user
TUser

要检索其声明的用户。

cancellationToken
CancellationToken

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

返回

一个表示异步查询结果的 Task<TResult>,即 Claim列表。

适用于