MacroMethodAddParameter Method (String, Type, String, Boolean, Boolean) |
Adds parameter to the method definition.
Namespace: CMS.MacroEngineAssembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 10.0.0
Syntax public 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
Implements
IMacroMethodAddParameter(String, Type, String, Boolean, Boolean)See Also