UserManager<TUser>.AddPasswordAsync(TUser, String) Metodo

Definizione

Aggiunge l'oggetto password all'oggetto specificato user solo se l'utente non dispone già di una password.

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

Parametri

user
TUser

Utente la cui password deve essere impostata.

password
String

Password da impostare.

Restituisce

Oggetto Task che rappresenta l'operazione asincrona contenente l'oggetto IdentityResult dell'operazione.

Si applica a