Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IProductVariantRepository Interface / CountVariantsForProduct Method
The product for which to count the number of variants
In This Topic
    CountVariantsForProduct Method (IProductVariantRepository)
    In This Topic
    Counts the number of ProductVariants for the given product
    Syntax
    int CountVariantsForProduct( 
       Product product
    )

    Parameters

    product
    The product for which to count the number of variants

    Return Value

    The number of ProductVariants for the given product
    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