VariantHelper CheckVariantCategoriesConsistency Method (Int32, IEnumerable Int32 )Kentico 8.1 API Reference
Checks if specified categories are used all and only in variants of specified product.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

productId
Type: OnlineSystem Int32
The product ID.
categoryIds
Type: OnlineSystem.Collections.Generic IEnumerable OnlineInt32 
The category IDs.

Return Value

Type: OnlineBoolean
True if specified categories are used all and only in variants of specified product; False otherwise.
See Also