LevelHierarchyDataSource Class

Used by the LevelHierarchyWebPart object to gather data.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.HierarchicalDataSourceControl
      Microsoft.SharePoint.Publishing.WebControls.LevelHierarchyDataSource
        Microsoft.SharePoint.Publishing.WebControls.TableOfContentsDataSource

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

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class LevelHierarchyDataSource _
    Inherits HierarchicalDataSourceControl _
    Implements IDataSource
'Usage
Dim instance As LevelHierarchyDataSource
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class LevelHierarchyDataSource : HierarchicalDataSourceControl, 
    IDataSource

Remarks

This is the data source that the LevelHierarchyWebPart uses to gather data. It is the intermediary between the consuming LevelHierarchyWebPart and the LevelHierarchyDataSourceView property, which is the object that actually gathers the data. LevelHierarchyDataSource contains similar properties to the LevelHierarchyWebPart and passes these configuration values to the LevelHierarchyDataSourceView.

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

LevelHierarchyDataSource Members

Microsoft.SharePoint.Publishing.WebControls Namespace