Click or drag to resize
WebPartInstanceLoadVariants Method
Loads all the MVT/Content personalization variants for this web part instance.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 11.0.0
Syntax
C#
public void LoadVariants(
	bool forceLoad,
	VariantModeEnum variantMode,
	int documentId = 0
)

Parameters

forceLoad
Type: SystemBoolean
Indicates if already loaded variants should be reloaded
variantMode
Type: CMS.PortalEngineVariantModeEnum
Specifies which variants should be loaded (MVT/ContentPersonalization/None - means both MVT+CP variants should try to load)
documentId (Optional)
Type: SystemInt32
Document ID if the instance holds a widget
See Also