IMacroMethodAddParameter Method |
Adds parameter to the method definition.
Namespace: CMS.CoreAssembly: CMS.Core (in CMS.Core.dll) Version: 12.0.0
Syntax void AddParameter(
string name,
Type type,
string comment,
bool isParams = false,
bool asExpression = false
)
Parameters
- name
- Type: SystemString
Name of the parameter - type
- Type: SystemType
Type of the parameter - comment
- Type: SystemString
Comment of the parameter - isParams (Optional)
- Type: SystemBoolean
If true, parameter is declared with params keyword - asExpression (Optional)
- Type: SystemBoolean
If true, the parameter is passed to the method as expression (MacroExpression object), not evaluated
See Also