Click or drag to resize
MacroProcessorProcessDataMacros Method
Replaces data macros with given replacement or resolves them if replacement is null.

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 9.0.0
Syntax
C#
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: String
See Also