UserManager<TUser>.RemovePasswordAsync Method

Definition

Overloads

RemovePasswordAsync(TUser)

Removes a user's password.

RemovePasswordAsync(TUser, CancellationToken)

Removes a user's password.

RemovePasswordAsync(TUser)

Removes a user's password.

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)

Parameters

user
TUser

The user whose password should be removed.

Returns

Task<IdentityResult>

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

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 = 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 = null) As Task(Of IdentityResult)

Parameters

user
TUser

The user whose password should be removed.

cancellationToken
CancellationToken

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

Returns

Task<IdentityResult>

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

Applies to