Click or drag to resize
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.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 12.0.0
Syntax
C#
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
ExceptionCondition
ArgumentNullExceptionThrown when page is null.
ArgumentExceptionThrown when there is no unconcluded A/B test or variantGuid does not identify an existing variant within page.
InvalidOperationExceptionThrown when the A/B test for the current page has not finished yet.
See Also