Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Catalog Namespace / ICategoryRepository Interface / GetRandomFeaturedCategories Method
If true, only public items are included in the result
The maximum number of featured items to return
In This Topic
    GetRandomFeaturedCategories Method (ICategoryRepository)
    In This Topic
    Gets a random selection of featured categories
    Syntax
    IList<Category> GetRandomFeaturedCategories( 
       bool publicOnly,
       int count
    )

    Parameters

    publicOnly
    If true, only public items are included in the result
    count
    The maximum number of featured items to return

    Return Value

    A collection of random featured categories
    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