Click or drag to resize
RuleHelperGetMacroConditionFromRule Method
Returns macro condition saved within the given Rule. If there is no corresponding condition in the rule, returns empty string.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 9.0.0
Syntax
C#
public static string GetMacroConditionFromRule(
	RuleInfo rule
)

Parameters

rule
Type: CMS.OnlineMarketingRuleInfo
Rule containing the macro

Return Value

Type: String
Macro condition of given rule, if available; empty string otherwise
Exceptions
ExceptionCondition
ArgumentNullExceptionArgument rule is null
See Also