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 | |
---|---|---|
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.
|
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
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.
|