MacroResolver ResolveMacroExpression Method (String, Boolean, Boolean, String)Kentico 8.1 API Reference
Resolves the data macro expression (expects expression without {% %} brackets).

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

expression
Type: OnlineSystem String
Macro expression without {% %} brackets
keepObjectsAsResult (Optional)
Type: OnlineSystem Boolean
If true, when the result is InfoObject it is the result, if false, object is resolved as its displayname (for backward compatibility)
skipSecurityCheck (Optional)
Type: OnlineSystem Boolean
If true, security check is not performed
type (Optional)
Type: OnlineSystem String
Type of the expression (? or $ or %)

Return Value

Type: EvaluationResult
See Also