Share via


UserManager<TUser>.RemovePasswordAsync Method

Remove a user's password

Namespace:  Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

'Declaration
Public Overridable Function RemovePasswordAsync ( _
    userId As String _
) As Task(Of IdentityResult)
'Usage
Dim instance As UserManager 
Dim userId As String 
Dim returnValue As Task(Of IdentityResult)

returnValue = instance.RemovePasswordAsync(userId)
public virtual Task<IdentityResult> RemovePasswordAsync(
    string userId
)
public:
virtual Task<IdentityResult^>^ RemovePasswordAsync(
    String^ userId
)
abstract RemovePasswordAsync : 
        userId:string -> Task<IdentityResult> 
override RemovePasswordAsync : 
        userId:string -> Task<IdentityResult> 
public function RemovePasswordAsync(
    userId : String
) : Task<IdentityResult>

Parameters

Return Value

Type: System.Threading.Tasks.Task<IdentityResult>

See Also

Reference

UserManager<TUser> Class

Microsoft.AspNet.Identity Namespace