Click or drag to resize
ABTestManagerAddVariant Method
Adds a new A/B test variant into page based on an existing source variant.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 12.0.0
Syntax
C#
public IABTestVariant AddVariant(
	TreeNode page,
	Nullable<Guid> sourceVariantGuid
)

Parameters

page
Type: CMS.DocumentEngineTreeNode
Page for which to add a new variant.
sourceVariantGuid
Type: SystemNullableGuid
GUID of the source variant (if null or Empty, original is assumed as the source).

Return Value

Type: IABTestVariant
Returns the new A/B test variant.

Implements

IABTestManagerAddVariant(TreeNode, NullableGuid)
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when page is null.
ArgumentExceptionThrow when sourceVariantGuid does not identify an existing variant within page.
See Also