SaaS CMS has officially launched! Learn more now.

Class MenuAssembler

Inheritance
System.Object
MenuAssembler
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Navigation
Assembly: EPiServer.Shell.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton)]
public class MenuAssembler

Constructors

MenuAssembler(IMenuProvider[], IServiceLocator)

Declaration
public MenuAssembler(IMenuProvider[] menuProviders, IServiceLocator container)
Parameters
Type Name Description
IMenuProvider[] menuProviders
IServiceLocator container

Properties

MenuProviders

Declaration
public ICollection<IMenuProvider> MenuProviders { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<IMenuProvider>

Methods

GetMenuHierarchy(String, Int32)

Declaration
public virtual IList<MenuNode> GetMenuHierarchy(string rootPath, int relativeDepth)
Parameters
Type Name Description
System.String rootPath
System.Int32 relativeDepth
Returns
Type Description
System.Collections.Generic.IList<MenuNode>

GetMenuHierarchy(String, Int32, String)

Declaration
public virtual IList<MenuNode> GetMenuHierarchy(string rootPath, int relativeDepth, string selectionPath)
Parameters
Type Name Description
System.String rootPath
System.Int32 relativeDepth
System.String selectionPath
Returns
Type Description
System.Collections.Generic.IList<MenuNode>

GetMenuItems(String, Int32)

Declaration
public virtual IEnumerable<MenuItem> GetMenuItems(string parentPath, int relativeDepth)
Parameters
Type Name Description
System.String parentPath
System.Int32 relativeDepth
Returns
Type Description
System.Collections.Generic.IEnumerable<MenuItem>

Extension Methods