UserManager<TUser>.RemovePasswordAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
The Task that represents the asynchronous operation, containing the IdentityResult of the operation.
Applies to
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 = Nothing) 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
The Task that represents the asynchronous operation, containing the IdentityResult of the operation.