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: 11.0.0
Syntaxprotected void RegisterMethodInternal(
string[] names,
Func<EvaluationContext, Object[], Object> method,
Type type,
string comment,
int minimumParameters,
Object[,] parameterDefinition,
string[] specialParameters = null
)
Parameters
- names
- Type: SystemString
Method names to register - 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