GetEmailAddressAvailability() [UserManager]

Check email address

Description

The GetEmailAddressAvailability() method is used to check the availability of an email from the system.

Interface

IUserManager

Syntax

await _userManager.GetEmailAddressAvailability(string email, UserType userType)

Returns

Task<EmailAddressAvailabilityState>

Example

var email = "user@domain.com"; var availability = await _organizationManager.GetEmailAddressAvailability(email, UserType.All);