UserManager<TUser>.UpdatePasswordHash(TUser, String, Boolean) 方法

定義

更新使用者的密碼雜湊。

protected:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ UpdatePasswordHash(TUser user, System::String ^ newPassword, bool validatePassword);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> UpdatePasswordHash (TUser user, string newPassword, bool validatePassword);
abstract member UpdatePasswordHash : 'User * string * bool -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.UpdatePasswordHash : 'User * string * bool -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Protected Overridable Function UpdatePasswordHash (user As TUser, newPassword As String, validatePassword As Boolean) As Task(Of IdentityResult)

參數

user
TUser

使用者。

newPassword
String

新的密碼。

validatePassword
Boolean

是否要驗證密碼。

傳回

密碼是否已成功更新。

適用於