IUserPasswordStore<TUser, TKey>.HasPasswordAsync Method

Indicates whether the user has a password set.

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

Syntax

'Declaration
Function HasPasswordAsync ( _
    user As TUser _
) As Task(Of Boolean)
'Usage
Dim instance As IUserPasswordStore 
Dim user As TUser
Dim returnValue As Task(Of Boolean)

returnValue = instance.HasPasswordAsync(user)
Task<bool> HasPasswordAsync(
    TUser user
)
Task<bool>^ HasPasswordAsync(
    TUser user
)
abstract HasPasswordAsync : 
        user:'TUser -> Task<bool> 
function HasPasswordAsync(
    user : TUser
) : Task<boolean>

Parameters

  • user
    Type: TUser
    The user.

Return Value

Type: System.Threading.Tasks.Task<Boolean>
true if the user has a password set; otherwise, false.

See Also

Reference

IUserPasswordStore<TUser, TKey> Interface

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity