Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.DigitalDelivery Namespace / IProductDigitalGoodRepository Interface / CountForVariant Method
ID of the product to count for
Option list that specifies the product variant
In This Topic
    CountForVariant Method (IProductDigitalGoodRepository)
    In This Topic
    Counts the number of ProductDigitalGood objects for a product variant
    Syntax
    int CountForVariant( 
       int productId,
       string optionList
    )

    Parameters

    productId
    ID of the product to count for
    optionList
    Option list that specifies the product variant

    Return Value

    The number of ProductDigitalGood objects for a product variant
    Remarks
    If option list is null or empty, the count 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