Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RequiresUniqueEmail Property

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 Overrides ReadOnly Property RequiresUniqueEmail As Boolean 
Dim instance As SimpleMembershipProvider 
Dim value As Boolean 

value = instance.RequiresUniqueEmail

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 Nothing and a status value of MembershipCreateStatus.DuplicateEmail.

© 2015 Microsoft