Click or drag to resize
IABTestManagerRenameVariant Method
Renames an A/B test variant in page identified by variant GUID with given name.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 12.0.0
Syntax
C#
void RenameVariant(
	TreeNode page,
	Guid variantGuid,
	string newVariantName
)

Parameters

page
Type: CMS.DocumentEngineTreeNode
Page in which to rename the variant.
variantGuid
Type: SystemGuid
Unique identifier of the variant for which the change the name.
newVariantName
Type: SystemString
New name for the variant identified with variantGuid.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when page is null.
ArgumentExceptionThrown when newVariantName is null, empty or has more than 100 characters.
InvalidOperationExceptionThrown when there is no variant with variantGuid identifier.
See Also