A user interface (UI) component that displays several actions that can be performed by authors in Microsoft SharePoint Foundation Publishing.
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)] [AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] [SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)] public sealed class PublishingMenu : WebControl
By default, the PublishingMenu control is located in the Page Editing toolbar, where it displays actions useful for editing and reviewing the current page, as well as other options. It displays itself as a set of top-level menus, each of which has several actions available within it. For a PublishingMenu and its actions to be displayed correctly, it must have a IHierarchicalDataSource interface (such as an XmlConsoleDataSource) on the page to supply the list of actions appropriate for the current user and page context.