UserManager<TUser>.GetClaimsAsync(TUser) Method

Definition

Gets a list of Claims to be belonging to the specified user as an asynchronous operation.

C#
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>> GetClaimsAsync (TUser user);

Parameters

user
TUser

The user whose claims to retrieve.

Returns

A Task<TResult> that represents the result of the asynchronous query, a list of Claims.

Applies to

منتج الإصدارات
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0