UserManager<TUser>.HasPasswordAsync Method
Returns true if 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 String _
) As Task(Of Boolean)
'Usage
Dim instance As UserManager
Dim userId As String
Dim returnValue As Task(Of Boolean)
returnValue = instance.HasPasswordAsync(userId)
public virtual Task<bool> HasPasswordAsync(
string userId
)
public:
virtual Task<bool>^ HasPasswordAsync(
String^ userId
)
abstract HasPasswordAsync :
userId:string -> Task<bool>
override HasPasswordAsync :
userId:string -> Task<bool>
public function HasPasswordAsync(
userId : String
) : Task<boolean>
Parameters
- userId
Type: System.String
Return Value
Type: System.Threading.Tasks.Task<Boolean>