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

    Parameters

    productId
    Id of 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