Export (0) Print
Expand All

TableOfContentsWebPart class

Renders a hierarchical view of Web Parts and Web pages when structural navigation is enabled, and renders the navigation term set when managed navigation is enabled.

This API is not CLS-compliant. 

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.BaseXsltDataWebPart
                Microsoft.SharePoint.WebPartPages.DataFormWebPart
                  Microsoft.SharePoint.Publishing.WebControls.CmsDataFormWebPart
                    Microsoft.SharePoint.Publishing.WebControls.LevelHierarchyWebPart
                      Microsoft.SharePoint.Publishing.WebControls.TableOfContentsWebPart
                        

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

[CLSCompliantAttribute(false)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class TableOfContentsWebPart : LevelHierarchyWebPart, 
	IWebPartVariationUpdate

This class derives from the LevelHierarchyWebPart class and uses level styling in XSL templates to render a Web page and its child pages. It is associated with the TableOfContentsDataSource class that provides the data for this Web Part. This class always displays Web sites, and can be configured either to display or not display Web pages. A manual sort can be applied to each Web Part or they can be sorted in navigation.

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

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.BaseXsltDataWebPart
                Microsoft.SharePoint.WebPartPages.DataFormWebPart
                  Microsoft.SharePoint.Publishing.WebControls.CmsDataFormWebPart
                    Microsoft.SharePoint.Publishing.WebControls.LevelHierarchyWebPart
                      Microsoft.SharePoint.Publishing.WebControls.TableOfContentsWebPart

Community Additions

ADD
Show:
© 2014 Microsoft