UserManager<TUser>.AddLoginAsync Method
Associate a login with a user
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
'Declaration
Public Overridable Function AddLoginAsync ( _
userId As String, _
login As UserLoginInfo _
) As Task(Of IdentityResult)
'Usage
Dim instance As UserManager
Dim userId As String
Dim login As UserLoginInfo
Dim returnValue As Task(Of IdentityResult)
returnValue = instance.AddLoginAsync(userId, _
login)
public virtual Task<IdentityResult> AddLoginAsync(
string userId,
UserLoginInfo login
)
public:
virtual Task<IdentityResult^>^ AddLoginAsync(
String^ userId,
UserLoginInfo^ login
)
abstract AddLoginAsync :
userId:string *
login:UserLoginInfo -> Task<IdentityResult>
override AddLoginAsync :
userId:string *
login:UserLoginInfo -> Task<IdentityResult>
public function AddLoginAsync(
userId : String,
login : UserLoginInfo
) : Task<IdentityResult>
Parameters
- userId
Type: System.String
- login
Type: Microsoft.AspNet.Identity.UserLoginInfo
Return Value
Type: System.Threading.Tasks.Task<IdentityResult>