Search Results for

    Show / Hide Table of Contents
    View Source

    Class MacroProperty

    Represents a Macro Property

    Inheritance
    System.Object
    BeingDirtyBase
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(IsReference = true)]
    public class MacroProperty : BeingDirtyBase, IMacroProperty, IValueObject, IDeepCloneable, IRememberBeingDirty, ICanBeDirty

    Constructors

    View Source

    MacroProperty()

    Declaration
    public MacroProperty()
    View Source

    MacroProperty(Int32, Guid, String, String, Int32, String)

    Ctor for creating an existing property

    Declaration
    public MacroProperty(int id, Guid key, string alias, string name, int sortOrder, string editorAlias)
    Parameters
    Type Name Description
    System.Int32 id
    Guid key
    System.String alias
    System.String name
    System.Int32 sortOrder
    System.String editorAlias
    View Source

    MacroProperty(String, String, Int32, String)

    Ctor for creating a new property

    Declaration
    public MacroProperty(string alias, string name, int sortOrder, string editorAlias)
    Parameters
    Type Name Description
    System.String alias
    System.String name
    System.Int32 sortOrder
    System.String editorAlias

    Properties

    View Source

    Alias

    Gets or sets the Alias of the Property

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

    EditorAlias

    Gets or sets the Type for this Property

    Declaration
    [DataMember]
    public string EditorAlias { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    The MacroPropertyTypes acts as a plugin for Macros. All types was previously contained in the database, but has been ported to code.

    View Source

    Id

    Gets or sets the Alias of the Property

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

    Key

    Gets or sets the Key of the Property

    Declaration
    [DataMember]
    public Guid Key { get; set; }
    Property Value
    Type Description
    Guid
    View Source

    Name

    Gets or sets the Name of the Property

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

    SortOrder

    Gets or sets the Sort Order of the Property

    Declaration
    [DataMember]
    public int SortOrder { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    View Source

    DeepClone()

    Declaration
    public object DeepClone()
    Returns
    Type Description
    System.Object
    View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    View Source

    Equals(MacroProperty)

    Declaration
    protected bool Equals(MacroProperty other)
    Parameters
    Type Name Description
    MacroProperty other
    Returns
    Type Description
    System.Boolean
    View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MacroProperty()
      • MacroProperty(Int32, Guid, String, String, Int32, String)
      • MacroProperty(String, String, Int32, String)
    • Properties
      • Alias
      • EditorAlias
      • Id
      • Key
      • Name
      • SortOrder
    • Methods
      • DeepClone()
      • Equals(Object)
      • Equals(MacroProperty)
      • GetHashCode()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX