Compartir a través de


UserManager<TUser>.RemovePasswordAsync Método

Definición

Sobrecargas

RemovePasswordAsync(TUser)

Quita la contraseña de un usuario.

RemovePasswordAsync(TUser, CancellationToken)

Quita la contraseña de un usuario.

RemovePasswordAsync(TUser)

Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs

Quita la contraseña de un usuario.

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

Parámetros

user
TUser

Usuario cuya contraseña debe quitarse.

Devoluciones

Task que representa la operación asincrónica, que contiene el IdentityResult de la operación.

Se aplica a

RemovePasswordAsync(TUser, CancellationToken)

Quita la contraseña de un usuario.

public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> RemovePasswordAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);
abstract member RemovePasswordAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.RemovePasswordAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function RemovePasswordAsync (user As TUser, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IdentityResult)

Parámetros

user
TUser

Usuario cuya contraseña debe quitarse.

cancellationToken
CancellationToken

El objeto CancellationToken que se usa para propagar notificaciones de que se debe cancelar la operación.

Devoluciones

Task que representa la operación asincrónica, que contiene el IdentityResult de la operación.

Se aplica a