Click or drag to resize
MacroMethodsRegisterMethodInternal Method (String, FuncObject, Object, Type, String, Int32, Object, String, ListType)
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 static void RegisterMethodInternal(
	string name,
	Func<Object[], Object> method,
	Type type,
	string comment,
	int minimumParameters,
	Object[,] parameterDefinition,
	string[] specialParameters,
	List<Type> allowedTypes
)

Parameters

name
Type: SystemString
Method name
method
Type: SystemFuncObject, 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
Type: SystemString
A list of special parameters needed to be supplied by resolver
allowedTypes
Type: System.Collections.GenericListType
List of types for which the method is applicable (set to null for all types to be allowed)
See Also