Click or drag to resize
VariantHelperSaveWebPartVariantChanges Method
Saves the web part variant changes (MVT/Content personalization variants).

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.2.23
Syntax
C#
public static void SaveWebPartVariantChanges(
	WebPartInstance webPartInstance,
	int variantId,
	int zoneVariantId,
	VariantModeEnum variantMode,
	Hashtable variantProperties
)

Parameters

webPartInstance
Type: CMS.PortalEngineWebPartInstance
The web part instance
variantId
Type: SystemInt32
The variant id
zoneVariantId
Type: SystemInt32
The zone variant id
variantMode
Type: CMS.PortalEngineVariantModeEnum
The variant mode
variantProperties
Type: System.CollectionsHashtable
The variant properties
See Also