View Source
Class MacroProperty
Represents a Macro Property
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
[DataContract(IsReference = true)]
public class MacroProperty : BeingDirtyBase, IMacroProperty, IValueObject, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Constructors
View Source
MacroProperty()
Declaration
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 |
|
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
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
Returns
Type |
Description |
System.Boolean |
|
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|