Click or drag to resize
MacroMethodContainerRegisterMethodInternal Method (String, FuncEvaluationContext, Object, Object, Type, String, Int32, Object, String)
Registers the given method within the method table.

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 10.0.0
Syntax
C#
protected void RegisterMethodInternal(
	string name,
	Func<EvaluationContext, Object[], Object> method,
	Type type,
	string comment,
	int minimumParameters,
	Object[,] parameterDefinition,
	string[] specialParameters = null
)

Parameters

name
Type: SystemString
Method name
method
Type: SystemFuncEvaluationContext, Object, Object
Method delegate
type
Type: SystemType
Return type of the method
comment
Type: SystemString
Comment for the method
minimumParameters
Type: SystemInt32
Minimal number of parameters needed to call the method
parameterDefinition
Type: SystemObject
Parameter definition in format {{name, type, comment}, {name, type, comment}}
specialParameters (Optional)
Type: SystemString
A list of special parameters needed to be supplied by resolver
See Also