IUserStore<TUser>.GetUserNameAsync(TUser, CancellationToken) Metodo

Definizione

Ottiene il nome utente per l'oggetto specificato user.

public:
 System::Threading::Tasks::Task<System::String ^> ^ GetUserNameAsync(TUser user, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string> GetUserNameAsync (TUser user, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string?> GetUserNameAsync (TUser user, System.Threading.CancellationToken cancellationToken);
abstract member GetUserNameAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetUserNameAsync (user As TUser, cancellationToken As CancellationToken) As Task(Of String)

Parametri

user
TUser

Utente il cui nome deve essere recuperato.

cancellationToken
CancellationToken

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

Restituisce

Oggetto Task che rappresenta l'operazione asincrona contenente il nome per l'oggetto specificato user.

Si applica a