Click or drag to resize
MVTVariantInfoProviderSaveVariantInternal Method (Int32, String, String, String, Boolean, String, Guid, Int32, Int32, String)
Saves the variant and generates new combinations if the variant is new.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 11.0.0
Syntax
C#
protected virtual int SaveVariantInternal(
	int variantId,
	string variantName,
	string variantDisplayName,
	string variantDescription,
	bool variantEnabled,
	string zoneId,
	Guid instanceGuid,
	int pageTemplateId,
	int documentId,
	string webPartsXml
)

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
webPartsXml
Type: SystemString
Web parts XML string

Return Value

Type: Int32
See Also