VGMembershipGetUserIdByEmail Method |
Namespace: Novalys.VisualGuard.Security.Membership
Exception | Condition |
---|---|
ArgumentNullException | emailToMatch is null. |
ArgumentException | emailToMatch is empty or longer than 64 characters after trimming. |
GetUserIdByEmail(String) can be used to retrieve the user name for a membership user in the case where a user does not know their user name, but does know their e-mail address. If more than one user in the data store has the same e-mail address, the first user name encountered is returned.
Leading and trailing spaces are trimmed from all parameter values.