Click or drag to resize
IABTestManagerAddVariant 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: 13.0.131
Syntax
C#
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.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when page is null.
ArgumentExceptionThrow when sourceVariantGuid does not identify an existing variant within page.
See Also