UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.FindUserAsync 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.
Return a user with the matching userId if it exists.
protected:
abstract System::Threading::Tasks::Task<TUser> ^ FindUserAsync(TKey userId, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<TUser> FindUserAsync (TKey userId, System.Threading.CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<TUser?> FindUserAsync (TKey userId, System.Threading.CancellationToken cancellationToken);
abstract member FindUserAsync : 'Key * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'User (requires 'User :> Microsoft.AspNetCore.Identity.IdentityUser<'Key>)>
Protected MustOverride Function FindUserAsync (userId As TKey, cancellationToken As CancellationToken) As Task(Of TUser)
Parameters
- userId
- TKey
The user's id.
- cancellationToken
- CancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.
Returns
Task<TUser>
The user if it exists.