ContentPersonalizationVariantInfoProviderSaveVariant Method |
Saves the variant.
Namespace: CMS.OnlineMarketingAssembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 10.0.0
Syntaxpublic static int SaveVariant(
int variantId,
string variantName,
string variantDisplayName,
string variantDescription,
bool variantEnabled,
string variantDisplayCondition,
string zoneId,
Guid instanceGuid,
int pageTemplateId,
int documentId,
XmlNode xmlWebParts
)
Parameters
- variantId
- Type: SystemInt32
The variant id - variantName
- Type: SystemString
Name of the variant - variantDisplayName
- Type: SystemString
Display name of the variant - variantDescription
- Type: SystemString
The variant description - variantEnabled
- Type: SystemBoolean
Indicates whether the variant is enabled - variantDisplayCondition
- Type: SystemString
The variant display condition - zoneId
- Type: SystemString
The zone id - instanceGuid
- Type: SystemGuid
The instance GUID - pageTemplateId
- Type: SystemInt32
The page template id - documentId
- Type: SystemInt32
The document id - xmlWebParts
- Type: System.XmlXmlNode
Web parts XML
Return Value
Type:
Int32
See Also