Share via


UserManager<TUser>.GetPhoneNumberAsync(TUser) Method

Definition

Gets the telephone number, if any, for the specified user.

public:
 virtual System::Threading::Tasks::Task<System::String ^> ^ GetPhoneNumberAsync(TUser user);
public virtual System.Threading.Tasks.Task<string> GetPhoneNumberAsync (TUser user);
public virtual System.Threading.Tasks.Task<string?> GetPhoneNumberAsync (TUser user);
abstract member GetPhoneNumberAsync : 'User -> System.Threading.Tasks.Task<string>
override this.GetPhoneNumberAsync : 'User -> System.Threading.Tasks.Task<string>
Public Overridable Function GetPhoneNumberAsync (user As TUser) As Task(Of String)

Parameters

user
TUser

The user whose telephone number should be retrieved.

Returns

The Task that represents the asynchronous operation, containing the user's telephone number, if any.

Applies to