UserManager<TUser>.GenerateChangeEmailTokenAsync(TUser, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.