UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.FindUserAsync 메서드

정의

일치하는 userId가 있는 사용자를 반환합니다(있는 경우).

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)

매개 변수

userId
TKey

사용자의 ID입니다.

cancellationToken
CancellationToken

작업을 취소해야 하는 알림을 전파하는 데 사용하는 CancellationToken입니다.

반환

Task<TUser>

사용자가 있는 경우 입니다.

적용 대상