UserManager<TUser>.HasPasswordAsync(TUser) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.