ContentPersonalizationVariantInfoProviderLoadContentPersonalizationVariants Method |
Loads the Content personalization variants for the specified instance (web part/zone/widget).
Return true, if the variants were successfully loaded.
Namespace: CMS.OnlineMarketingAssembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 11.0.0
Syntax public static bool LoadContentPersonalizationVariants(
Object instance,
bool isZone,
int documentId = 0
)
Parameters
- instance
- Type: SystemObject
The zone instance of web part instance - isZone
- Type: SystemBoolean
Indicates if the parameter instance object is a zone - documentId (Optional)
- Type: SystemInt32
Document ID if the instance holds a widget
Return Value
Type:
BooleanTrue, 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