Click or drag to resize
MacroProcessingContext Class
Context for macro processing (context for parsing the text for macro expressions).
Inheritance Hierarchy
SystemObject
  CMS.MacroEngineMacroProcessingContext

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.2.23
Syntax
C#
public class MacroProcessingContext

The MacroProcessingContext type exposes the following members.

Constructors
  NameDescription
Public methodMacroProcessingContext
Top
Methods
  NameDescription
Public methodGetWholeMacroExpression
Returns the whole version of the expression created by concatenation of the parameters. The result is for example this: {(0)%test%(0)}.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Properties
  NameDescription
Public propertyBracketType
Type of the baracket - used for backward compatibility when macros could be nested '{(0)% %(0)}'
Public propertyExpression
Identified macro expression including all the parameters.
Public propertyIsOpenExpression
Indicates whether the expression is transformed open expression (condition, loop).
Public propertyMacroEnd
End of the macro (position after end bracket).
Public propertyMacroStart
Start position of the macro (position of starting bracket).
Public propertyMacroType
Type of the macro ($, %, #, etc.).
Public propertyParameter
Custom object parameter passed to the processing handler.
Public propertyReplacement
Replacement string passed to the macro handler.
Public propertySourceText
Text in which the macro was found.
Top
See Also