UserManager<TUser, TKey>.HasPasswordAsync Method

Determines whether the user has a password.

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

Syntax

'Declaration
Public Overridable Function HasPasswordAsync ( _
    userId As TKey _
) As Task(Of Boolean)
'Usage
Dim instance As UserManager 
Dim userId As TKey
Dim returnValue As Task(Of Boolean)

returnValue = instance.HasPasswordAsync(userId)
public virtual Task<bool> HasPasswordAsync(
    TKey userId
)
public:
virtual Task<bool>^ HasPasswordAsync(
    TKey userId
)
abstract HasPasswordAsync : 
        userId:'TKey -> Task<bool> 
override HasPasswordAsync : 
        userId:'TKey -> Task<bool> 
public function HasPasswordAsync(
    userId : TKey
) : Task<boolean>

Parameters

  • userId
    Type: TKey
    The user ID.

Return Value

Type: System.Threading.Tasks.Task<Boolean>
The task representing the asynchronous operation.

See Also

Reference

UserManager<TUser, TKey> Class

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity