UserManager<TUser>.AddLoginAsync(TUser, UserLoginInfo) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an external UserLoginInfo to the specified user
.
public:
virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ AddLoginAsync(TUser user, Microsoft::AspNetCore::Identity::UserLoginInfo ^ login);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> AddLoginAsync (TUser user, Microsoft.AspNetCore.Identity.UserLoginInfo login);
abstract member AddLoginAsync : 'User * Microsoft.AspNetCore.Identity.UserLoginInfo -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.AddLoginAsync : 'User * Microsoft.AspNetCore.Identity.UserLoginInfo -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function AddLoginAsync (user As TUser, login As UserLoginInfo) As Task(Of IdentityResult)
Parameters
- user
- TUser
The user to add the login to.
- login
- UserLoginInfo
The external UserLoginInfo to add to the specified user
.
Returns
The Task that represents the asynchronous operation, containing the IdentityResult of the operation.