IABTestManagerPromoteVariant Method |
Promotes a variant identified by variantGuid as the winner variant.
Winning variant is stored in the database within the A/B test.
Namespace: CMS.OnlineMarketingAssembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 13.0.131
Syntax void PromoteVariant(
TreeNode page,
Guid variantGuid
)
Parameters
- page
- Type: CMS.DocumentEngineTreeNode
Page for which to promote the winner variant. - variantGuid
- Type: SystemGuid
GUID of the variant to be promoted.
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown when page is null. |
ArgumentException | Thrown when there is no unconcluded A/B test or variantGuid does not identify an existing variant within page. |
InvalidOperationException | Thrown when the A/B test for the current page has not finished yet. |
See Also