Share via


UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.AddLoginAsync Method (TUser, UserLoginInfo)

 

Asynchronously adds a login to the user.

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

Syntax

public virtual Task AddLoginAsync(
    TUser user,
    UserLoginInfo login
)
public:
virtual Task^ AddLoginAsync(
    TUser user,
    UserLoginInfo^ login
)
abstract AddLoginAsync : 
        user:'TUser *
        login:UserLoginInfo -> Task
override AddLoginAsync : 
        user:'TUser *
        login:UserLoginInfo -> Task
Public Overridable Function AddLoginAsync (
    user As TUser,
    login As UserLoginInfo
) As Task

Parameters

  • user
    Type: TUser

    The user.

Return Value

Type: System.Threading.Tasks.Task

The task representing the asynchronous operation.

Implements

IUserLoginStore<TUser, TKey>.AddLoginAsync(TUser, UserLoginInfo)

See Also

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity

Return to top