UserManager<TUser>.RemovePasswordAsync UserManager<TUser>.RemovePasswordAsync UserManager<TUser>.RemovePasswordAsync Method

Definition

Overloads

RemovePasswordAsync(TUser) RemovePasswordAsync(TUser) RemovePasswordAsync(TUser)

Removes a user's password.

RemovePasswordAsync(TUser, CancellationToken) RemovePasswordAsync(TUser, CancellationToken)

Removes a user's password.

RemovePasswordAsync(TUser) RemovePasswordAsync(TUser) RemovePasswordAsync(TUser)

Removes a user's password.

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)

Parameters

user
TUser TUser TUser

The user whose password should be removed.

Returns

The Task that represents the asynchronous operation, containing the IdentityResult of the operation.

RemovePasswordAsync(TUser, CancellationToken) RemovePasswordAsync(TUser, CancellationToken)

Removes a user's password.

public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> RemovePasswordAsync (TUser user, System.Threading.CancellationToken cancellationToken = null);
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>

Parameters

user
TUser TUser TUser

The user whose password should be removed.

cancellationToken
CancellationToken CancellationToken CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

The Task that represents the asynchronous operation, containing the IdentityResult of the operation.

Applies to