Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / UpsellProductCollection Class / IndexOf Method
The list of items to search.
The product id to search for.
The upsold product id to search for.
In This Topic
    IndexOf Method (UpsellProductCollection)
    In This Topic
    Gets the index of the object in this collection whose primary key matches the given value.
    Syntax

    Parameters

    list
    The list of items to search.
    productId
    The product id to search for.
    upsellProductId
    The upsold product id to search for.

    Return Value

    Index of the matching entity.
    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