Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    MenuItemCollection(ActionCollection)

    Declaration
    public MenuItemCollection(ActionCollection actionCollection)
    Parameters
    Type Name Description
    ActionCollection actionCollection
    View Source

    MenuItemCollection(ActionCollection, IEnumerable<MenuItem>)

    Declaration
    public MenuItemCollection(ActionCollection actionCollection, IEnumerable<MenuItem> items)
    Parameters
    Type Name Description
    ActionCollection actionCollection
    IEnumerable<MenuItem> items

    Properties

    View Source

    DefaultMenuAlias

    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
    View Source

    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

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MenuItemCollection(ActionCollection)
      • MenuItemCollection(ActionCollection, IEnumerable<MenuItem>)
    • Properties
      • DefaultMenuAlias
      • Items
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX