Dela via


UserManager<TUser>.GenerateChangePhoneNumberTokenAsync Method

Definition

Generates a telephone number change token for the specified user.

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

Parameters

user
TUser

The user to generate a telephone number token for.

phoneNumber
String

The new phone number the validation token should be sent to.

Returns

The Task that represents the asynchronous operation, containing the telephone change number token.

Applies to