Share via


UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>.GetPhoneNumberAsync Metodo

Definizione

Ottiene il numero di telefono, se presente, per l'oggetto specificato user.

public virtual System.Threading.Tasks.Task<string> GetPhoneNumberAsync (TUser user, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPhoneNumberAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.GetPhoneNumberAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function GetPhoneNumberAsync (user As TUser, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parametri

user
TUser

L'utente il cui numero di telefono 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 numero di telefono dell'utente, se presente.

Implementazioni

Si applica a