IMacroMethod AddParameter Method Kentico 8.0 API Reference
Adds parameter to the method definition.

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 8.0.0.0 (8.0.5239.26125)

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