Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Users Namespace / IUserRepository Interface / FindUsersByNameOrGroup Method / FindUsersByNameOrGroup(String,NameSearchField,Int32,Boolean,Boolean,Int32,Int32,String) Method
The search pattern to check against the user table.
The name field to check against the search pattern.
Id of the group to match, pass zero (0) to search users having no group
If true match is made for search pattern otherwise it is made on group
If true search results will include the anonymous users
Maximum number of rows to retrieve.
Starting index from where to start retrieving.
The sort expression to use for sorting the loaded objects.
In This Topic
    FindUsersByNameOrGroup(String,NameSearchField,Int32,Boolean,Boolean,Int32,Int32,String) Method
    In This Topic
    Loads users that match a particular search pattern or group
    Syntax

    Parameters

    searchPattern
    The search pattern to check against the user table.
    searchField
    The name field to check against the search pattern.
    groupId
    Id of the group to match, pass zero (0) to search users having no group
    searchByName
    If true match is made for search pattern otherwise it is made on group
    includeAnonymous
    If true search results will include the anonymous users
    maximumRows
    Maximum number of rows to retrieve.
    startRowIndex
    Starting index from where to start retrieving.
    sortExpression
    The sort expression to use for sorting the loaded objects.

    Return Value

    A collection of User objects matching the search criteria or group
    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