Class MacroPropertyCollection
A macro's property collection
Inheritance
System.Object
System.Collections.ObjectModel.Collection<IMacroProperty>
System.Collections.ObjectModel.ObservableCollection<IMacroProperty>
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class MacroPropertyCollection : ObservableDictionary<string, IMacroProperty>, IList<IMacroProperty>, ICollection<IMacroProperty>, IReadOnlyList<IMacroProperty>, IReadOnlyCollection<IMacroProperty>, IEnumerable<IMacroProperty>, IList, ICollection, IEnumerable, INotifyPropertyChanged, INotifyCollectionChanged, 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 |