UserManager<TUser>.HasPasswordAsync(TUser) Method

Definition

Gets a flag indicating whether the specified user has a password.

public:
 virtual System::Threading::Tasks::Task<bool> ^ HasPasswordAsync(TUser user);
public virtual System.Threading.Tasks.Task<bool> HasPasswordAsync (TUser user);
abstract member HasPasswordAsync : 'User -> System.Threading.Tasks.Task<bool>
override this.HasPasswordAsync : 'User -> System.Threading.Tasks.Task<bool>
Public Overridable Function HasPasswordAsync (user As TUser) As Task(Of Boolean)

Parameters

user
TUser

The user to return a flag for, indicating whether they have a password or not.

Returns

The Task that represents the asynchronous operation, returning true if the specified user has a password otherwise false.

Applies to