Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IMacro

    Defines a Macro

    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IMacro : IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty

    Properties

    View Source

    Alias

    Gets or sets the alias of the Macro

    Declaration
    [DataMember]
    string Alias { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    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
    View Source

    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
    View Source

    CacheDuration

    Gets or sets the Cache Duration for the Macro

    Declaration
    [DataMember]
    int CacheDuration { get; set; }
    Property Value
    Type Description
    System.Int32
    View Source

    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
    View Source

    MacroSource

    Gets or set the path to the macro source to render

    Declaration
    [DataMember]
    string MacroSource { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Name

    Gets or sets the name of the Macro

    Declaration
    [DataMember]
    string Name { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Properties

    Gets or sets a list of Macro Properties

    Declaration
    [DataMember]
    MacroPropertyCollection Properties { get; }
    Property Value
    Type Description
    MacroPropertyCollection
    View Source

    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
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • Alias
      • CacheByMember
      • CacheByPage
      • CacheDuration
      • DontRender
      • MacroSource
      • Name
      • Properties
      • UseInEditor
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX