Click or drag to resize
SKUAllowedOptionInfoProviderAddOptionToProduct Method

Note: This API is now obsolete.

Sets relationship between specified product and option.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use ISKUAllowedOptionInfoProvider.Add(int, int) instead. To get an instance of the interface's implementation, use dependency injection or access the instance directly - SKUAllowedOptionInfo.Provider.")]
public static void AddOptionToProduct(
	int productId,
	int optionId
)

Parameters

productId
Type: SystemInt32
Product ID (SKUID).
optionId
Type: SystemInt32
Product option ID (SKUID).
See Also