Click or drag to resize
MVTVariantInfoProviderSaveVariant Method
Saves the variant and generates new combinations if the variant is new.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 12.0.0
Syntax
C#
public static int SaveVariant(
	int variantId,
	string variantName,
	string variantDisplayName,
	string variantDescription,
	bool variantEnabled,
	string zoneId,
	Guid instanceGuid,
	int pageTemplateId,
	int documentId,
	XmlNode xmlWebParts
)

Parameters

variantId
Type: SystemInt32
The variant id
variantName
Type: SystemString
Name of the variant
variantDisplayName
Type: SystemString
Display name of the variant
variantDescription
Type: SystemString
The variant description
variantEnabled
Type: SystemBoolean
Indicates whether the variant is enabled
zoneId
Type: SystemString
The zone id
instanceGuid
Type: SystemGuid
The instance GUID
pageTemplateId
Type: SystemInt32
The page template id
documentId
Type: SystemInt32
The document id
xmlWebParts
Type: System.XmlXmlNode
Web parts XML

Return Value

Type: Int32
See Also