Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / BasketItem Class / GetParentItem Method / GetParentItem(Boolean) Method
If true, this method gets the top level parent for this item. If false, only the immediate parent is returned.
In This Topic
    GetParentItem(Boolean) Method
    In This Topic
    Gets the parent item for this basket item.
    Syntax
    public virtual BasketItem GetParentItem( 
       bool recurse
    )

    Parameters

    recurse
    If true, this method gets the top level parent for this item. If false, only the immediate parent is returned.

    Return Value

    Returns the BasketItem instance for the parent item. If the current item has no parent, the current item is returned.
    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