UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.GetLoginsAsync Metoda

Definice

Načte přidružená přihlášení pro zadané .

public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNetCore.Identity.UserLoginInfo>> GetLoginsAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);
public override System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNetCore.Identity.UserLoginInfo>> GetLoginsAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLoginsAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNetCore.Identity.UserLoginInfo>>
override this.GetLoginsAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNetCore.Identity.UserLoginInfo>>
override this.GetLoginsAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNetCore.Identity.UserLoginInfo>>
Public Overridable Function GetLoginsAsync (user As TUser, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of UserLoginInfo))
Public Overrides Function GetLoginsAsync (user As TUser, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of UserLoginInfo))

Parametry

user
TUser

Uživatel, jehož přidružené přihlašovací údaje se mají načíst.

cancellationToken
CancellationToken

Používá CancellationToken se k šíření oznámení, že by měla být operace zrušena.

Návraty

Task<IList<UserLoginInfo>>

Pro Task asynchronní operaci obsahující seznam zadaných UserLoginInfo useroperací , pokud existuje.

Implementuje

Platí pro