Share via


UnpublishCommandHandler Class

Defines the ribbon command handler for the Unpublish button.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      Microsoft.SharePoint.WebControls.SPRibbonCommandHandler
        Microsoft.SharePoint.WebControls.UnpublishCommandHandler

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name := "FullTrust")> _
Public Class UnpublishCommandHandler _
    Inherits SPRibbonCommandHandler _
    Implements ICallbackEventHandler
'Usage
Dim instance As UnpublishCommandHandler
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
public class UnpublishCommandHandler : SPRibbonCommandHandler, 
    ICallbackEventHandler

Remarks

This command handler defines properties and methods in order to configure the related ribbon button and to do the necessary action when the ribbon button is clicked.

Thread Safety

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

See Also

Reference

UnpublishCommandHandler Members

Microsoft.SharePoint.WebControls Namespace