| MacroMethod Class |
Namespace: CMS.MacroEngine
public class MacroMethod : MacroExtension, IMacroMethod
The MacroMethod type exposes the following members.
| Name | Description | |
|---|---|---|
| MacroMethod |
Creates new MacroMethod object.
| |
| MacroMethod(String, FuncObject, Object) |
Creates new instance of MacroMethod object.
| |
| MacroMethod(String, FuncEvaluationContext, Object, Object) |
Creates new instance of MacroMethod object.
| |
| MacroMethod(String, FuncMacroResolver, Object, Object) |
Creates new instance of MacroMethod object.
|
| Name | Description | |
|---|---|---|
| AllowedTypes |
Gets or sets a list of types for which the method is applicable (set to null for all types to be allowed).
| |
| Comment |
Gets or sets a comment for the method.
| |
| IsHidden |
If true, the method won't be visible in IntelliSense (but will be normally executed when called).
| |
| Method |
Gets or sets reference to a method.
| |
| MethodContext |
Gets or sets reference to a method.
| |
| MethodResolver |
Gets or sets reference to a method.
| |
| MinimumParameters |
Gets or sets the minimal number of parameters needed by the method.
| |
| Name |
Returns name of the field.
(Inherited from MacroExtension.) | |
| Parameters |
Gets or sets the parameters for the method.
| |
| Snippet |
Gets or sets a code snippet which is used in AutoCompletion when TAB is pressed (for determining the cursor position use pipe).
| |
| SpecialParameters |
Gets or sets the list of special parameters needed to be supplied by resolver.
| |
| Type |
Gets or sets a return type of the method.
|
| Name | Description | |
|---|---|---|
| AddParameter(IMacroMethodParam) |
Adds parameter to the method definition.
| |
| AddParameter(String, Type, String, Boolean, Boolean) |
Adds parameter to the method definition.
| |
| ExecuteMethod(Object) |
Executes given method with parameters.
| |
| ExecuteMethod(EvaluationContext, Object) |
Executes given method with parameters.
| |
| GetParameterComment |
Returns a comment of the index-th parameter.
| |
| GetParameterName |
Returns a name of the index-th parameter.
| |
| GetParameterType |
Returns a type of the index-th parameter.
|