Click or drag to resize
UserInfoProviderIsEmailUnique Method (String, IEnumerableString, Int32)
Returns true if email doesn't exist in users table. Depends on 'Unique e-mails' and 'Shared user accounts' settings

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax
C#
public static bool IsEmailUnique(
	string email,
	IEnumerable<string> siteNames,
	int currentUserId
)

Parameters

email
Type: SystemString
E-mail
siteNames
Type: System.Collections.GenericIEnumerableString
One or more site name
currentUserId
Type: SystemInt32
Current user id, if is 0 => new user

Return Value

Type: Boolean
See Also