Click or drag to resize
MacroMethodAddParameter Method (String, Type, String, Boolean, Boolean)
Adds parameter to the method definition.

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 12.0.0
Syntax
C#
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