MacroProcessorProcessDataMacros Method |
Replaces data macros with given replacement or resolves them if replacement is null.
Namespace: CMS.MacroEngineAssembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.2.23
Syntax public static string ProcessDataMacros(
string text,
string replacement,
Object parameter,
MacroProcessorOnProcessMacro processMacro
)
Parameters
- text
- Type: SystemString
Text where the macros will be replaced/resolved - replacement
- Type: SystemString
Replacement string - parameter
- Type: SystemObject
Custom parameter passed to the callback function - processMacro
- Type: CMS.MacroEngineMacroProcessorOnProcessMacro
Callback to handle the macro resolving
Return Value
Type:
StringSee Also