Dela via


UserManager<TUser>.GenerateChangeEmailTokenAsync(TUser, String) Method

Definition

Generates an email change token for the specified user.

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

Parameters

user
TUser

The user to generate an email change token for.

newEmail
String

The new email address.

Returns

The Task that represents the asynchronous operation, an email change token.

Applies to