UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.FindUserAsync Yöntem

Tanım

Varsa eşleşen kullanıcı kimliğine sahip bir kullanıcı döndürür.

protected:
 override System::Threading::Tasks::Task<TUser> ^ FindUserAsync(TKey userId, System::Threading::CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task<TUser> FindUserAsync (TKey userId, System.Threading.CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task<TUser?> FindUserAsync (TKey userId, System.Threading.CancellationToken cancellationToken);
override this.FindUserAsync : 'Key * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'User (requires 'User :> Microsoft.AspNetCore.Identity.IdentityUser<'Key>)>
Protected Overrides Function FindUserAsync (userId As TKey, cancellationToken As CancellationToken) As Task(Of TUser)

Parametreler

userId
TKey

Kullanıcının kimliği.

cancellationToken
CancellationToken

İşlemin CancellationToken iptal edilmesi gerektiğine ilişkin bildirimleri yaymak için kullanılır.

Döndürülenler

Task<TUser>

Varsa kullanıcı.

Şunlara uygulanır