November Happy Hour will be moved to Thursday December 5th.

Class MenuBuilder

Builds a html structure of the shell menu

Inheritance
System.Object
MenuBuilder
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: 9.12.2
Syntax
[ServiceConfiguration(Lifecycle = ServiceInstanceScope.Singleton)]
public class MenuBuilder

Constructors

MenuBuilder(MenuAssembler, IServiceLocator)

Initializes a new instance of the MenuBuilder class.

Declaration
public MenuBuilder(MenuAssembler assembler, IServiceLocator serviceLocator)
Parameters
Type Name Description
MenuAssembler assembler

The assembler.

IServiceLocator serviceLocator

Used to get the request.

Methods

GetMenu(String)

Gets the menu html.

Declaration
public string GetMenu(string startPath)
Parameters
Type Name Description
System.String startPath

The start path.

Returns
Type Description
System.String

GetMenu(String, String)

Gets the menu html.

Declaration
public string GetMenu(string startPath, string selectionPath)
Parameters
Type Name Description
System.String startPath

The start path.

System.String selectionPath

The menu path to select, If null the selection will be autoresolved

Returns
Type Description
System.String

Render(TextWriter, String, String)

Renders the menu onto the supplied text writer.

Declaration
public virtual void Render(TextWriter writer, string startPath, string selectionPath)
Parameters
Type Name Description
System.IO.TextWriter writer

The writer.

System.String startPath

The start path.

System.String selectionPath

The menu path to select, If null the selection will be autoresolved

Extension Methods