MembershipProvider.RequiresUniqueEmail Property

Definition

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

public:
 abstract property bool RequiresUniqueEmail { bool get(); };
public abstract bool RequiresUniqueEmail { get; }
member this.RequiresUniqueEmail : bool
Public MustOverride ReadOnly Property RequiresUniqueEmail As Boolean

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

See also