Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.DigitalDelivery Namespace / IDigitalGoodRepository Interface / LoadForVariant Method / LoadForVariant(Int32,String,Int32,Int32,String) Method
ID of the product to count for
Option list that specifies the product variant
Maximum number of rows to retrieve.
Starting index from where to start retrieving.
The sort expression to use for sorting the loaded objects.
In This Topic
    LoadForVariant(Int32,String,Int32,Int32,String) Method
    In This Topic
    Loads a collection of DigitalGood objects for the variant from the database. Sorts using the given sort exrpression.
    Syntax

    Parameters

    productId
    ID of the product to count for
    optionList
    Option list that specifies the product variant
    maximumRows
    Maximum number of rows to retrieve.
    startRowIndex
    Starting index from where to start retrieving.
    sortExpression
    The sort expression to use for sorting the loaded objects.

    Return Value

    A collection of DigitalGood objects
    Remarks
    If option list is null or empty, the collection returned is for digital goods that are not associated with any variant
    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