Click or drag to resize
ContentPersonalizationVariantInfoProviderGetMatchingWebPartInstance Method
Returns the web part instance variant which fulfill its display condition. If no variant found, return the original web part.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 9.0.0
Syntax
C#
protected virtual WebPartInstance GetMatchingWebPartInstance(
	WebPartInstance originalWebPart,
	int templateId,
	ViewModeEnum viewMode,
	Hashtable chosenVariants
)

Parameters

originalWebPart
Type: CMS.PortalEngineWebPartInstance
The original web part
templateId
Type: SystemInt32
The template id
viewMode
Type: CMS.PortalEngineViewModeEnum
The view mode
chosenVariants
Type: System.CollectionsHashtable
The hash table containing chosen variants

Return Value

Type: WebPartInstance
See Also