Class MenuItemCollection
A menu item collection for a given tree node
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Trees
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "menuItems", Namespace = "")]
public class MenuItemCollection
Constructors
View SourceMenuItemCollection(ActionCollection)
Declaration
public MenuItemCollection(ActionCollection actionCollection)
Parameters
Type | Name | Description |
---|---|---|
ActionCollection | actionCollection |
MenuItemCollection(ActionCollection, IEnumerable<MenuItem>)
Declaration
public MenuItemCollection(ActionCollection actionCollection, IEnumerable<MenuItem> items)
Parameters
Type | Name | Description |
---|---|---|
ActionCollection | actionCollection | |
IEnumerable<MenuItem> | items |
Properties
View SourceDefaultMenuAlias
Sets the default menu item alias to be shown when the menu is launched - this is optional and if not set then the menu will just be shown normally.
Declaration
[DataMember(Name = "defaultAlias")]
public string DefaultMenuAlias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Items
The list of menu items
Declaration
[DataMember(Name = "menuItems")]
public MenuItemList Items { get; }
Property Value
Type | Description |
---|---|
MenuItemList |
Remarks
We require this so the json serialization works correctly