Click or drag to resize
IMacroMethodAddParameter Method
Adds parameter to the method definition.

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