MacroMethod AddParameter Method (String, Type, String, Boolean, Boolean)Kentico 8.1 API Reference
Adds parameter to the method definition.

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

Parameters

name
Type: OnlineSystem String
Name of the parameter
type
Type: OnlineSystem Type
Type of the parameter
comment
Type: OnlineSystem String
Comment of the parameter
isParams (Optional)
Type: OnlineSystem Boolean
If true, parameter is declared with params keyword
asExpression (Optional)
Type: OnlineSystem Boolean
If true, the parameter is passed to the method as expression (MacroExpression object), not evaluated
See Also