Click or drag to resize
CachedMacroRuleTreesGetParsedTree Method
Parses serialized macro (for example in a contact group) to a MacroRuleTree and saves it to cache for subsequent calls. If macro rule tree was already parsed, returns it from cache.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 8.2.23
Syntax
C#
public static MacroRuleTree GetParsedTree(
	string macroCondition
)

Parameters

macroCondition
Type: SystemString
Macro condition

Return Value

Type: MacroRuleTree
MacroRuleTree that is parsed from macroCondition or taken from cache or null if it cannot be parsed
Exceptions
ExceptionCondition
ArgumentNullExceptionmacroCondition cannot be null
See Also