UserManager<TUser>.FindByEmailAsync(String) Method

Definition

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

email
String

The email address to return the user for.

Returns

Task<TUser>

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.

Applies to