UserManager<TUser>.GetClaimsAsync Method
Get a users's claims
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
'Declaration
Public Overridable Function GetClaimsAsync ( _
userId As String _
) As Task(Of IList(Of Claim))
'Usage
Dim instance As UserManager
Dim userId As String
Dim returnValue As Task(Of IList(Of Claim))
returnValue = instance.GetClaimsAsync(userId)
public virtual Task<IList<Claim>> GetClaimsAsync(
string userId
)
public:
virtual Task<IList<Claim^>^>^ GetClaimsAsync(
String^ userId
)
abstract GetClaimsAsync :
userId:string -> Task<IList<Claim>>
override GetClaimsAsync :
userId:string -> Task<IList<Claim>>
public function GetClaimsAsync(
userId : String
) : Task<IList<Claim>>
Parameters
- userId
Type: System.String
Return Value
Type: System.Threading.Tasks.Task<IList<Claim>>