Click or drag to resize
UserInfoProviderIsUserNamePrefixUnique Method
Test if there is any site prefix username (f.e. 'site.{GUID}.{Name}' and '{Name}' is not allowed at the same time). Should be checked if site prefixes are disabled but user names with site prefixes may exist in the system.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 12.0.0
Syntax
C#
public static bool IsUserNamePrefixUnique(
	string userName,
	int userID
)

Parameters

userName
Type: SystemString
User name to test. Must be without 'site.GUID' prefix
userID
Type: SystemInt32
ID of tested user

Return Value

Type: Boolean
See Also