Click or drag to resize
VariantHelper Class
Helper class for portal engine variants
Inheritance Hierarchy
SystemObject
  CMS.PortalEngineVariantHelper

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 12.0.0
Syntax
C#
public static class VariantHelper

The VariantHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberDeleteWidgetVariants
Removes all widget variants and their combinations.
Public methodStatic memberGetVariantID
Return variant ID based on name and page template ID
Public methodStatic memberGetVariants
Returns variants for given type and documents or template
Public methodStatic memberSaveWebPartVariantChanges
Saves the web part variant changes (MVT/Content personalization variants).
Public methodStatic memberSetVariant
Saves variant's properties
Public methodStatic memberSetVariantWebParts(WebPartZoneInstance, Int32)
Saves the variant.
Public methodStatic memberSetVariantWebParts(VariantModeEnum, Int32, XmlNode)
Saves the variants
Top
See Also