MacroProcessor ProcessMacros Method Kentico 8.1 API Reference
Replaces macros with given replacement or resolves them if replacement is null.

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

Parameters

data
Type: CMS.Base IDataContainer
Object to process
lambda
Type: OnlineSystem Func OnlineString, OnlineString, OnlineString 
Lambda expression called on each macro
type (Optional)
Type: OnlineSystem.Collections.Generic List OnlineString 
Type of the macro to resolve (if null, all types are resolved).
processOpenExpressions (Optional)
Type: OnlineSystem Boolean
If true, open expressions such as {% if (true) { %} any HTML code {%}%} are processed

Return Value

Type: OnlineBoolean
See Also