Click or drag to resize
MacroMethod Class
Macro method object.
Inheritance Hierarchy

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 8.2.23
Syntax
C#
public class MacroMethod : MacroExtension, 
	IMacroMethod

The MacroMethod type exposes the following members.

Constructors
Methods
  NameDescription
Public methodAddParameter(IMacroMethodParam)
Adds parameter to the method definition.
Public methodAddParameter(String, Type, String, Boolean, Boolean)
Adds parameter to the method definition.
Public methodExecuteMethod(Object)
Executes given method with parameters.
Public methodExecuteMethod(EvaluationContext, Object)
Executes given method with parameters.
Public methodGetParameterComment
Returns a comment of the index-th parameter.
Public methodGetParameterName
Returns a name of the index-th parameter.
Public methodGetParameterType
Returns a type of the index-th parameter.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Properties
  NameDescription
Public propertyAllowedTypes
Gets or sets a list of types for which the method is applicable (set to null for all types to be allowed).
Public propertyComment
Gets or sets a comment for the method.
Public propertyIsHidden
If true, the method won't be visible in IntelliSense (but will be normally executed when called).
Public propertyMethod
Gets or sets reference to a method.
Public propertyMethodContext
Gets or sets reference to a method.
Public propertyMethodResolver
Gets or sets reference to a method.
Public propertyMinimumParameters
Gets or sets the minimal number of parameters needed by the method.
Public propertyName
Returns name of the field.
(Inherited from MacroExtension.)
Public propertyParameters
Gets or sets the parameters for the method.
Public propertySnippet
Gets or sets a code snippet which is used in AutoCompletion when TAB is pressed (for determining the cursor position use pipe).
Public propertySpecialParameters
Gets or sets the list of special parameters needed to be supplied by resolver.
Public propertyType
Gets or sets a return type of the method.
Top
See Also