Click or drag to resize
ABTestManagerGetVariants Method
Returns all A/B test variants existing for given page.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 12.0.0
Syntax
C#
public IEnumerable<IABTestVariant> GetVariants(
	TreeNode page
)

Parameters

page
Type: CMS.DocumentEngineTreeNode

Return Value

Type: IEnumerableIABTestVariant
Existing variants or empty enumeration when document has empty A/B variant configuration. Variants are represented by IABTestVariant interface.

Implements

IABTestManagerGetVariants(TreeNode)
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen passed page is null.
InvalidOperationExceptionWhen document has malformed A/B variant configuration data.
See Also