Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Catalog Namespace / ICategoryParentRepository Interface / GetCategoryLevels Method / GetCategoryLevels(Int32,Boolean) Method
ID of the category to exclude from the collection; 0 if none.
If true, only include public categories in result set.
In This Topic
    GetCategoryLevels(Int32,Boolean) Method
    In This Topic
    Gets the category tree of the store in a flat collection, sorted by level.
    Syntax

    Parameters

    exclude
    ID of the category to exclude from the collection; 0 if none.
    publicOnly
    If true, only include public categories in result set.

    Return Value

    A collection of categories in the store, organized by level.
    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