Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

SimpleMembershipProvider.RequiresUniqueEmail Property

Gets a value that indicates whether the membership provider requires a unique email address for each user name.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)
public override bool RequiresUniqueEmail { get; }

Property Value

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

If the RequiresUniqueEmail property is true, and if a user already exists in the data source for the current ApplicationName, the SimpleMembershipProvider.CreateUser(String, String, String, String, String, Boolean, Object, MembershipCreateStatus) method returns null and a status value of MembershipCreateStatus.DuplicateEmail.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.