UserManager<TUser>.GetPhoneNumberAsync(TUser) UserManager<TUser>.GetPhoneNumberAsync(TUser) UserManager<TUser>.GetPhoneNumberAsync(TUser) Method

Definition

Gets the telephone number, if any, for the specified 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 TUser 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