Click or drag to resize
ContentPersonalizationVariantInfoProviderSaveVariant Method
Saves the variant.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 9.0.0
Syntax
C#
public static int SaveVariant(
	int variantId,
	string variantName,
	string variantDisplayName,
	string variantDescription,
	bool variantEnabled,
	string variantDisplayCondition,
	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
variantDisplayCondition
Type: SystemString
The variant display condition
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