Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Users Namespace / IUserRepository Interface / GetUserIdByUserName Method
The username to look up.
In This Topic
    GetUserIdByUserName Method (IUserRepository)
    In This Topic
    Gets a UserId given a username.
    Syntax
    int GetUserIdByUserName( 
       string userName
    )

    Parameters

    userName
    The username to look up.

    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