Share via


UserManager<TUser, TKey>.HasPasswordAsync Method (TKey)

 

Determines whether the user has a password.

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

Syntax

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 Overridable Function HasPasswordAsync (
    userId As TKey
) As Task(Of Boolean)

Parameters

  • userId
    Type: TKey

    The user ID.

Return Value

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

The task representing the asynchronous operation.

See Also

UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top