UserManager<TUser>.RemovePasswordAsync Method
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.
RemovePasswordAsync(TUser) |
Removes a user's password. |
RemovePasswordAsync(TUser, CancellationToken) |
Removes a user's password. |
- 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
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 |
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.
Applies to
ASP.NET Core 1.1 وASP.NET Core 1.0
منتج | الإصدارات |
---|---|
ASP.NET Core | 1.0, 1.1 |