UserManager<TUser, TKey>.GetClaimsAsync Method
Gets a user claims.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
'Declaration
Public Overridable Function GetClaimsAsync ( _
userId As TKey _
) As Task(Of IList(Of Claim))
'Usage
Dim instance As UserManager
Dim userId As TKey
Dim returnValue As Task(Of IList(Of Claim))
returnValue = instance.GetClaimsAsync(userId)
public virtual Task<IList<Claim>> GetClaimsAsync(
TKey userId
)
public:
virtual Task<IList<Claim^>^>^ GetClaimsAsync(
TKey userId
)
abstract GetClaimsAsync :
userId:'TKey -> Task<IList<Claim>>
override GetClaimsAsync :
userId:'TKey -> Task<IList<Claim>>
public function GetClaimsAsync(
userId : TKey
) : Task<IList<Claim>>
Parameters
- userId
Type: TKey
The user ID.
Return Value
Type: System.Threading.Tasks.Task<IList<Claim>>
The task representing the asynchronous operation.
See Also
Reference
UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace