IUserPasswordStore<TUser>.HasPasswordAsync Method

Definition

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

public:
 System::Threading::Tasks::Task<bool> ^ HasPasswordAsync(TUser user, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> HasPasswordAsync (TUser user, System.Threading.CancellationToken cancellationToken);
abstract member HasPasswordAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function HasPasswordAsync (user As TUser, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

user
TUser

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

cancellationToken
CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

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

Applies to