Class MacroMethodAttribute
- Namespace
- CMS.MacroEngine
- Assembly
- CMS.MacroEngine.dll
Adds action to the page.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public class MacroMethodAttribute : Attribute
- Inheritance
-
objectAttributeMacroMethodAttribute
- Extension Methods
Constructors
MacroMethodAttribute()
Default constructor.
public MacroMethodAttribute()
MacroMethodAttribute(Type, string, int)
Creates new MacroMethodAttribute.
public MacroMethodAttribute(Type type, string comment, int minimumParameters)
Parameters
type
TypeMethod return type
comment
stringComment of the method
minimumParameters
intminimal number of parameters needed by the method
Properties
Comment
Comment of the macro method.
public string Comment { get; set; }
Property Value
- string
IsHidden
If true, the method won't be visible in IntelliSense (but will be normally executed when called).
public bool IsHidden { get; set; }
Property Value
- bool
MinimumParameters
Gets or sets the minimal number of parameters needed by the method.
public int MinimumParameters { get; set; }
Property Value
- int
Name
Name of the macro method.
public string Name { get; set; }
Property Value
- string
Snippet
Gets or sets a code snippet which is used in AutoCompletion when TAB is pressed (for determining the cursor position use pipe).
public string Snippet { get; set; }
Property Value
- string
SpecialParameters
Gets or sets the list of special parameters needed to be supplied by resolver.
public string[] SpecialParameters { get; set; }
Property Value
- string[]
Type
Gets or sets a return type of the method.
public Type Type { get; set; }
Property Value
- Type