Compartilhar via


LevelHierarchyWebPart classe

Representa a classe base para Web Parts que processam dados hierárquicos usando folhas de estilo do Extensible Stylesheet Language (XSL).

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

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

Sintaxe

'Declaração
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public MustInherit Class LevelHierarchyWebPart _
    Inherits CmsDataFormWebPart _
    Implements INamingContainer
'Uso
Dim instance As LevelHierarchyWebPart
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public abstract class LevelHierarchyWebPart : CmsDataFormWebPart, 
    INamingContainer

Comentários

Dados hierárquicos de um HierarchicalDataSource são processados por essa Web Part usando o conceito de níveis e estilos. Há um máximo de três níveis de suporte e estilos podem ser atribuídos a cada um dos três níveis. Por exemplo, dada a estrutura de dados hierárquica:

GroupA Item1 Item2
GroupB Item3 Item4
GroupC Item5 Item6
GroupD Item6 Item7

GroupA é nível 1; GroupB é Level2; GroupC é Level2; GroupD é Level3. O nível de informações de estilo está contido em uma folha de estilos XSL; Para obter um exemplo, consulte LevelStyle.xsl.

Esta Web Part funciona em conjunto com a folha de estilos XSL primário que permite a saída a ser exibida em colunas e que, se configurado, exibe o texto de título acima dados hierárquicos. Dados hierárquicos são de uma fonte de dados hierárquica e o número de níveis de dados para obter é determinado pelas propriedades que são definidas nesta Web Part.

Segurança de thread

Os membros públicos estática (Shared no Visual Basic) desse tipo são seguros para thread. Nenhum membro de instância pode ser garantido como seguro para thread.

Ver também

Referência

LevelHierarchyWebPart membros

Microsoft.SharePoint.Publishing.WebControls namespace

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