Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Search Namespace / SearchDataSource Class / SearchWebsiteCount Method
The search phrase.
The id of category to search for the search phrase.
In This Topic
    SearchWebsiteCount Method (SearchDataSource)
    In This Topic
    Searches the website count.
    Syntax
    public static int SearchWebsiteCount( 
       string searchPhrase,
       int categoryId
    )

    Parameters

    searchPhrase
    The search phrase.
    categoryId
    The id of category to search for the search phrase.

    Return Value

    Number of search results meeting search query.
    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