SignInManager<TUser>.CanSignInAsync(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.
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.