UserManager<TUser>.RemovePasswordAsync Method

Definition

Overloads

RemovePasswordAsync(TUser)

Removes a user's password.

RemovePasswordAsync(TUser, CancellationToken)

Removes a user's password.

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

Removes a user's password.

C#
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> RemovePasswordAsync (TUser user);

Parameters

user
TUser

The user whose password should be removed.

Returns

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

Applies to

ASP.NET Core 9.0 والإصدارات الأخرى
منتج الإصدارات
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

RemovePasswordAsync(TUser, CancellationToken)

Removes a user's password.

C#
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> RemovePasswordAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);

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

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

Applies to

ASP.NET Core 1.1 وASP.NET Core 1.0
منتج الإصدارات
ASP.NET Core 1.0, 1.1