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

 

Gets the logins for a user.

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

Syntax

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

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

Return to top