共用方式為


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

定義

取得要屬於指定之 user 做為異步操作的 Claim清單。

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清單。

適用於