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