Condividi tramite


IUserPhoneNumberStore<TUser>.GetPhoneNumberAsync Metodo

Definizione

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

public:
 System::Threading::Tasks::Task<System::String ^> ^ GetPhoneNumberAsync(TUser user, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string> GetPhoneNumberAsync (TUser user, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string?> GetPhoneNumberAsync (TUser user, System.Threading.CancellationToken cancellationToken);
abstract member GetPhoneNumberAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetPhoneNumberAsync (user As TUser, cancellationToken As CancellationToken) 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.

Si applica a