Class MenuRenderingNotification
A notification that allows developers to modify the menu that is being rendered
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Notifications
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public class MenuRenderingNotification : INotification
Remarks
Developers can add/remove/replace/insert/update/etc... any of the tree items in the collection.
Constructors
View SourceMenuRenderingNotification(String, MenuItemCollection, FormCollection, String)
Declaration
public MenuRenderingNotification(string nodeId, MenuItemCollection menu, FormCollection queryString, string treeAlias)
Parameters
Type | Name | Description |
---|---|---|
System.String | nodeId | |
MenuItemCollection | menu | |
Microsoft.AspNetCore.Http.FormCollection | queryString | |
System.String | treeAlias |
Properties
View SourceMenu
The menu being rendered
Declaration
public MenuItemCollection Menu { get; }
Property Value
Type | Description |
---|---|
MenuItemCollection |
NodeId
The tree node id that the menu is rendering for
Declaration
public string NodeId { get; }
Property Value
Type | Description |
---|---|
System.String |
QueryString
The query string of the current request
Declaration
public FormCollection QueryString { get; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Http.FormCollection |
TreeAlias
The alias of the tree the menu is rendering for
Declaration
public string TreeAlias { get; }
Property Value
Type | Description |
---|---|
System.String |