MacroMethodContainerRegisterMethodInternal Method (String, FuncEvaluationContext, Object, Object, Type, String, Int32, Object, String) |
Registers the given method within the method table.
Namespace: CMS.MacroEngineAssembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 13.0.131
Syntax 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