UserManager<TUser>.VerifyPasswordAsync 方法

定義

傳回 , PasswordVerificationResult 指出密碼雜湊比較的結果。

protected:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::PasswordVerificationResult> ^ VerifyPasswordAsync(Microsoft::AspNetCore::Identity::IUserPasswordStore<TUser> ^ store, TUser user, System::String ^ password);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasswordVerificationResult> VerifyPasswordAsync (Microsoft.AspNetCore.Identity.IUserPasswordStore<TUser> store, TUser user, string password);
abstract member VerifyPasswordAsync : Microsoft.AspNetCore.Identity.IUserPasswordStore<'User (requires 'User : null)> * 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasswordVerificationResult>
override this.VerifyPasswordAsync : Microsoft.AspNetCore.Identity.IUserPasswordStore<'User (requires 'User : null)> * 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasswordVerificationResult>
Protected Overridable Function VerifyPasswordAsync (store As IUserPasswordStore(Of TUser), user As TUser, password As String) As Task(Of PasswordVerificationResult)

參數

store
IUserPasswordStore<TUser>

包含使用者密碼的存放區。

user
TUser

應該驗證其密碼的使用者。

password
String

要驗證的密碼。

傳回

Task 表示非同步作業,其中包含 PasswordVerificationResult 作業的 。

適用於