UserManager<TUser>.RemovePasswordAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RemovePasswordAsync(TUser) |
删除用户的密码。 |
RemovePasswordAsync(TUser, CancellationToken) |
删除用户的密码。 |
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
删除用户的密码。
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)
参数
- user
- TUser
应删除其密码的用户。
返回
表示 Task 异步操作的 ,包含 IdentityResult 操作的 。
适用于
RemovePasswordAsync(TUser, CancellationToken)
删除用户的密码。
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)
参数
- user
- TUser
应删除其密码的用户。
- cancellationToken
- CancellationToken
CancellationToken,用于传播应取消操作的通知。
返回
表示 Task 异步操作的 ,包含 IdentityResult 操作的 。