Click or drag to resize
VariantOptionInfoProviderAddOptionToVariant Method

Note: This API is now obsolete.

Sets relationship between specified product variant and option.

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

Parameters

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