Share via


SignInManager<TUser>.CanSignInAsync(TUser) Method

Definition

Returns a flag indicating whether the specified user can sign in.

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

Parameters

user
TUser

The user whose sign-in status should be returned.

Returns

The task object representing the asynchronous operation, containing a flag that is true if the specified user can sign-in, otherwise false.

Applies to