MacroMethods RegisterMethodInternal Method (String, Func MacroResolver,  Object , Object , Type, String, Int32,  Object ,  String , List Type )Kentico 8.0 API Reference
Registers the given method within the method table.

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

name
Type: OnlineSystem String
Method name
method
Type: OnlineSystem Func MacroResolver,  OnlineObject , OnlineObject 
Method delegate
type
Type: OnlineSystem Type
Return type of the method
comment
Type: OnlineSystem String
Comment for the method
minimumParameters
Type: OnlineSystem Int32
Minimal number of parameters needed to call the method
parameterDefinition
Type:  OnlineSystem Object 
Parameter definition in format {{name, type, comment}, {name, type, comment}}
specialParameters
Type:  OnlineSystem String 
A list of special parameters needed to be supplied by resolver
allowedTypes
Type: OnlineSystem.Collections.Generic List OnlineType 
List of types for which the method is applicable (set to null for all types to be allowed)
See Also