共用方式為


WebPartAdder Class

Represents a control that provides the user interface (UI) to allow users to add Web Parts to a page.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      Microsoft.SharePoint.WebPartPages.WebPartAdder

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

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class WebPartAdder _
    Inherits WebControl _
    Implements ICallbackEventHandler, IPostBackEventHandler
'Usage
Dim instance As WebPartAdder
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class WebPartAdder : WebControl, 
    ICallbackEventHandler, IPostBackEventHandler

Remarks

The UI for this class is in the Server ribbon.

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

WebPartAdder Members

Microsoft.SharePoint.WebPartPages Namespace