Class MacroPropertyCollection
A macro's property collection
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class MacroPropertyCollection : ObservableDictionary<string, IMacroProperty>, IDeepCloneable
Constructors
View SourceMacroPropertyCollection()
Declaration
public MacroPropertyCollection()
Methods
View SourceDeepClone()
Declaration
public object DeepClone()
Returns
| Type | Description |
|---|---|
| System.Object |
UpdateProperty(String, String, Nullable<Int32>, String, String)
Used to update an existing macro property
Declaration
public void UpdateProperty(string currentAlias, string name = null, int? sortOrder = null, string editorAlias = null, string newAlias = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | currentAlias | The existing property alias |
| System.String | name | |
| System.Nullable<System.Int32> | sortOrder | |
| System.String | editorAlias | |
| System.String | newAlias |