Interface IMacro
Defines a Macro
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public interface IMacro : IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Properties
View SourceAlias
Gets or sets the alias of the Macro
Declaration
[DataMember]
string Alias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CacheByMember
Gets or sets a boolean indicating whether the Macro should be Cached Personally
Declaration
[DataMember]
bool CacheByMember { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CacheByPage
Gets or sets a boolean indicating whether the Macro should be Cached by Page
Declaration
[DataMember]
bool CacheByPage { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CacheDuration
Gets or sets the Cache Duration for the Macro
Declaration
[DataMember]
int CacheDuration { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DontRender
Gets or sets a boolean indicating whether the Macro should be rendered in an Editor
Declaration
[DataMember]
bool DontRender { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MacroSource
Gets or set the path to the macro source to render
Declaration
[DataMember]
string MacroSource { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Name
Gets or sets the name of the Macro
Declaration
[DataMember]
string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Properties
Gets or sets a list of Macro Properties
Declaration
[DataMember]
MacroPropertyCollection Properties { get; }
Property Value
Type | Description |
---|---|
MacroPropertyCollection |
UseInEditor
Gets or sets a boolean indicating whether the Macro can be used in an Editor
Declaration
[DataMember]
bool UseInEditor { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |