PublishingButton Class

User interface (UI) control that renders in the Web browser as a clickable button with Microsoft SharePoint Foundation publishing styles.


Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class PublishingButton : WebControl

PublishingButton objects are most commonly used in the QuickAccessMenu, a control that is found in the Page Editing toolbar. In that this context, each button represents an action that can be executed by the user and that in most cases involves a postback. Each button can be displayed with text and an image, and can either execute JavaScript code or navigate to another page.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.