Partager via


PasswordValidator<TUser>.ValidateAsync Méthode

Définition

Valide un mot de passe en tant qu’opération asynchrone.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ ValidateAsync(Microsoft::AspNetCore::Identity::UserManager<TUser> ^ manager, TUser user, System::String ^ password);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ValidateAsync (Microsoft.AspNetCore.Identity.UserManager<TUser> manager, TUser user, string password);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> ValidateAsync (Microsoft.AspNetCore.Identity.UserManager<TUser> manager, TUser user, string? password);
abstract member ValidateAsync : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.ValidateAsync : Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function ValidateAsync (manager As UserManager(Of TUser), user As TUser, password As String) As Task(Of IdentityResult)

Paramètres

manager
UserManager<TUser>

à UserManager<TUser> partir duquel récupérer les user propriétés.

user
TUser

Utilisateur dont le mot de passe doit être validé.

password
String

Mot de passe fourni pour la validation

Retours

Objet de tâche représentant l'opération asynchrone.

Implémente

S’applique à