UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.SetPasswordHashAsync Method
Asynchronously sets the password hash for a user.
Namespace: Microsoft.AspNet.Identity.EntityFramework
Assembly: Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)
Syntax
'Declaration
Public Function SetPasswordHashAsync ( _
user As TUser, _
passwordHash As String _
) As Task
'Usage
Dim instance As UserStore
Dim user As TUser
Dim passwordHash As String
Dim returnValue As Task
returnValue = instance.SetPasswordHashAsync(user, _
passwordHash)
public Task SetPasswordHashAsync(
TUser user,
string passwordHash
)
public:
virtual Task^ SetPasswordHashAsync(
TUser user,
String^ passwordHash
) sealed
abstract SetPasswordHashAsync :
user:'TUser *
passwordHash:string -> Task
override SetPasswordHashAsync :
user:'TUser *
passwordHash:string -> Task
public final function SetPasswordHashAsync(
user : TUser,
passwordHash : String
) : Task
Parameters
- user
Type: TUser
The user.
- passwordHash
Type: System.String
The password hash.
Return Value
Type: System.Threading.Tasks.Task
The task representing the asynchronous operation.
Implements
IUserPasswordStore<TUser, TKey>.SetPasswordHashAsync(TUser, String)
See Also
Reference
UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class
Microsoft.AspNet.Identity.EntityFramework Namespace