Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Users Namespace / UserRepository Class / GetUserIdByEmail Method / GetUserIdByEmail(String,Boolean) Method
The email address to look up.
Whether to include anonymous users are not
In This Topic
    GetUserIdByEmail(String,Boolean) Method
    In This Topic
    Gets a UserId given an email address.
    Syntax
    public int GetUserIdByEmail( 
       string email,
       bool includeAnonymous
    )

    Parameters

    email
    The email address to look up.
    includeAnonymous
    Whether to include anonymous users are not

    Return Value

    The user id if the user is found. If the user is not found, returns 0.
    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