UserManager<TUser, TKey>.RemovePasswordAsync Method
Removes a user password.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
'Declaration
Public Overridable Function RemovePasswordAsync ( _
userId As TKey _
) As Task(Of IdentityResult)
'Usage
Dim instance As UserManager
Dim userId As TKey
Dim returnValue As Task(Of IdentityResult)
returnValue = instance.RemovePasswordAsync(userId)
public virtual Task<IdentityResult> RemovePasswordAsync(
TKey userId
)
public:
virtual Task<IdentityResult^>^ RemovePasswordAsync(
TKey userId
)
abstract RemovePasswordAsync :
userId:'TKey -> Task<IdentityResult>
override RemovePasswordAsync :
userId:'TKey -> Task<IdentityResult>
public function RemovePasswordAsync(
userId : TKey
) : Task<IdentityResult>
- userId
Type: TKey
The user ID.
Type: System.Threading.Tasks.Task<IdentityResult>
The task representing the asynchronous operation.
UserManager<TUser, TKey> Class