Click or drag to resize
ContentPersonalizationVariantInfoProviderLoadContentPersonalizationVariantsInternal Method
Loads the Content personalization variants for the specified instance (web part/zone/widget) running in the current DocumentContext. Return true, if the variants were successfully loaded.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 11.0.0
Syntax
C#
protected virtual bool LoadContentPersonalizationVariantsInternal(
	Object instance,
	bool isZone,
	int documentId
)

Parameters

instance
Type: SystemObject
The zone instance of web part instance
isZone
Type: SystemBoolean
Indicates if the parameter instance object is a zone
documentId
Type: SystemInt32
Document ID if the instance holds a widget

Return Value

Type: Boolean
True, if the variants were successfully loaded. False, if it was not possible to load variants, for example due to missing information in the instance.
See Also