Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / IRelatedProductRepository Interface / GetRelatedCount Method
The parent product id.
The child product id.
In This Topic
    GetRelatedCount Method (IRelatedProductRepository)
    In This Topic
    Gets the count of relationships for the given parent and child products.
    Syntax
    int GetRelatedCount( 
       int productId,
       int childProductId
    )

    Parameters

    productId
    The parent product id.
    childProductId
    The child product id.

    Return Value

    A count of the relationships.
    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