UserManager<TUser, TKey>.GetClaimsAsync Method (TKey)

 

Gets a user claims.

Namespace:   Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

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 Overridable Function GetClaimsAsync (
    userId As TKey
) As Task(Of IList(Of 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

UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top