UserStoreBase<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.FindUserRoleAsync 메서드

정의

userId 및 roleId에 대한 사용자 역할을 반환합니다(있는 경우).

protected:
 abstract System::Threading::Tasks::Task<TUserRole> ^ FindUserRoleAsync(TKey userId, TKey roleId, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<TUserRole> FindUserRoleAsync (TKey userId, TKey roleId, System.Threading.CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<TUserRole?> FindUserRoleAsync (TKey userId, TKey roleId, System.Threading.CancellationToken cancellationToken);
abstract member FindUserRoleAsync : 'Key * 'Key * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'UserRole (requires 'UserRole :> Microsoft.AspNetCore.Identity.IdentityUserRole<'Key> and 'UserRole : (new : unit -> 'UserRole))>
Protected MustOverride Function FindUserRoleAsync (userId As TKey, roleId As TKey, cancellationToken As CancellationToken) As Task(Of TUserRole)

매개 변수

userId
TKey

사용자의 ID입니다.

roleId
TKey

역할의 ID입니다.

cancellationToken
CancellationToken

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

반환

Task<TUserRole>

사용자 역할(있는 경우)입니다.

적용 대상