MembershipProvider.RequiresUniqueEmail Property

Definition

Gets a value indicating whether the membership provider is configured to require a unique email address for each user name.

C#
public abstract bool RequiresUniqueEmail { get; }

Property Value

true if the membership provider requires a unique email address; otherwise, false. The default is true.

Examples

For an example of a MembershipProvider implementation, see Implementing a Profile Provider.

Remarks

The RequiresUniqueEmail property indicates whether users must supply a unique email address value when creating a user. If a user already exists in the data source for the current ApplicationName, then the CreateUser method returns null and a status value of DuplicateEmail.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also