MacroResolverResolveMacroExpression Method (String, Boolean, Boolean, String) |
Namespace: CMS.MacroEngineAssembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 12.0.0
Syntax public EvaluationResult ResolveMacroExpression(
string expression,
bool keepObjectsAsResult = false,
bool skipSecurityCheck = false,
string type = "%"
)
Parameters
- expression
- Type: SystemString
Macro expression without {% %} brackets - keepObjectsAsResult (Optional)
- Type: SystemBoolean
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: SystemBoolean
If true, security check is not performed - type (Optional)
- Type: SystemString
Type of the expression (? or $ or %)
Return Value
Type:
EvaluationResultRemarks
Returns null when macro evaluation throws exception
See Also