CreateVariant Method

Creates a new variant using the specified combination values.

Namespace:  Microsoft.Dynamics.Commerce.Runtime.DataModel
Assembly:  Microsoft.Dynamics.Commerce.Runtime (in Microsoft.Dynamics.Commerce.Runtime.dll)

public static Variant CreateVariant(
	string colorId,
	string sizeId,
	string styleId,
	string configId
)

Parameters

colorId
Type: System.String
sizeId
Type: System.String
styleId
Type: System.String
configId
Type: System.String

Return Value

Type: Microsoft.Dynamics.Commerce.Runtime.DataModel.Variant
A newly created variant.

Community Additions

Show: