IUserEmailStore<TUser>.FindByEmailAsync 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 specified, normalized email address.
public:
System::Threading::Tasks::Task<TUser> ^ FindByEmailAsync(System::String ^ normalizedEmail, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<TUser> FindByEmailAsync (string normalizedEmail, System.Threading.CancellationToken cancellationToken);
public System.Threading.Tasks.Task<TUser?> FindByEmailAsync (string normalizedEmail, System.Threading.CancellationToken cancellationToken);
abstract member FindByEmailAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'User (requires 'User : null)>
Public Function FindByEmailAsync (normalizedEmail As String, cancellationToken As CancellationToken) As Task(Of TUser)
Parameters
- normalizedEmail
- String
The normalized email address to return the user for.
- cancellationToken
- CancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.
Returns
The task object containing the results of the asynchronous lookup operation, the user if any associated with the specified normalized email address.