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