UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>.FindByNameAsync Metodo

Definizione

Trova e restituisce un utente, se presente, che ha il nome utente normalizzato specificato.

public abstract System.Threading.Tasks.Task<TUser> FindByNameAsync (string normalizedUserName, System.Threading.CancellationToken cancellationToken = default);
public abstract System.Threading.Tasks.Task<TUser?> FindByNameAsync (string normalizedUserName, System.Threading.CancellationToken cancellationToken = default);
abstract member FindByNameAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'User (requires 'User :> Microsoft.AspNetCore.Identity.IdentityUser<'Key>)>
Public MustOverride Function FindByNameAsync (normalizedUserName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TUser)

Parametri

normalizedUserName
String

Nome utente normalizzato da cercare.

cancellationToken
CancellationToken

Oggetto CancellationToken usato per propagare le notifiche di richiesta di annullamento dell'operazione.

Restituisce

Task<TUser>

Oggetto Task che rappresenta l'operazione asincrona contenente l'utente corrispondente all'oggetto specificato normalizedUserName se esiste.

Implementazioni

Si applica a