IABTestManagerAddVariant Method |
Adds a new A/B test variant into page based on an existing source variant.
Namespace: CMS.OnlineMarketingAssembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 13.0.131
Syntax 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:
IABTestVariantReturns the new A/B test variant.
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown when page is null. |
ArgumentException | Throw when sourceVariantGuid does not identify an existing variant within page. |
See Also