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