Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Users Namespace / UserRepository Class / GetUserIdByEmail Method / GetUserIdByEmail(String) Method
The email address to look up.
In This Topic
    GetUserIdByEmail(String) Method
    In This Topic
    Gets a UserId given an email address.
    Syntax
    public int GetUserIdByEmail( 
       string email
    )

    Parameters

    email
    The email address to look up.

    Return Value

    The user id if the user is found. If the user is not found, returns 0.
    Remarks
    By default, anonymous user records are not included in the email lookup.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also