次の方法で共有


TitleBarWebPart Class

Implements the title Web Part for a Web Part Page and renders the Microsoft.SharePoint.WebPartPages.SettingsLink.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      System.Web.UI.WebControls.Panel
        System.Web.UI.WebControls.WebParts.Part
          System.Web.UI.WebControls.WebParts.WebPart
            Microsoft.SharePoint.WebPartPages.WebPart
              Microsoft.SharePoint.WebPartPages.TitleBarWebPart

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

<SupportsAttributeMarkupAttribute(True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class TitleBarWebPart _
    Inherits WebPart _
    Implements IDesignTimeHtmlProvider

Dim instance As TitleBarWebPart
[SupportsAttributeMarkupAttribute(true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class TitleBarWebPart : WebPart, 
    IDesignTimeHtmlProvider

Remarks

If anonymous access is turned on, the Microsoft.SharePoint.WebPartPages.AuthenticationButton is rendered in the title bar.

The TitleBarWebPart Web Part does not appear in the site gallery by default. If you are creating a new Web Part Page and want a Title Bar on your page, you can add this Web Part to the site gallery by going to Site Settings, and then Go to Site Administration. In the Site Collection Galleries section, click on Manage Web Part Gallery, then click New Web Part, check the TitleBarWebPart, and then click Populate Gallery.

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

TitleBarWebPart Members

Microsoft.SharePoint.WebPartPages Namespace