Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Catalog Namespace / IWebpageRepository Interface / CountForCategory Method
The category to get webpages from
A value indicating whether or not to get webpages from subcategories as well
A value indicating whether or not to get only public webpages or all webpages
In This Topic
    CountForCategory Method (IWebpageRepository)
    In This Topic
    Gets the webpages count for the given category
    Syntax
    int CountForCategory( 
       int categoryId,
       bool recurse,
       bool publicOnly
    )

    Parameters

    categoryId
    The category to get webpages from
    recurse
    A value indicating whether or not to get webpages from subcategories as well
    publicOnly
    A value indicating whether or not to get only public webpages or all webpages

    Return Value

    Count of webpages
    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