Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Users Namespace / GroupRepository Class / GetIdByName Method
The case-insensitive group name.
In This Topic
    GetIdByName Method (GroupRepository)
    In This Topic
    Gets the ID of a group given the name.
    Syntax
    public int GetIdByName( 
       string name
    )

    Parameters

    name
    The case-insensitive group name.

    Return Value

    The int ID that represents the group, or 0 if the group is not found.
    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