UserManager<TUser>.FindByEmailAsync(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.
Gets the user, if any, associated with the normalized value of the specified email address. Note: Its recommended that identityOptions.User.RequireUniqueEmail be set to true when using this method, otherwise the store may throw if there are users with duplicate emails.
public:
virtual System::Threading::Tasks::Task<TUser> ^ FindByEmailAsync(System::String ^ email);
public virtual System.Threading.Tasks.Task<TUser> FindByEmailAsync (string email);
public virtual System.Threading.Tasks.Task<TUser?> FindByEmailAsync (string email);
abstract member FindByEmailAsync : string -> System.Threading.Tasks.Task<'User (requires 'User : null)>
override this.FindByEmailAsync : string -> System.Threading.Tasks.Task<'User (requires 'User : null)>
Public Overridable Function FindByEmailAsync (email As String) As Task(Of TUser)
Parameters
- String
The email address to return the user for.
Returns
The task object containing the results of the asynchronous lookup operation, the user, if any, associated with a normalized value of the specified email address.