다음을 통해 공유


SPHierarchyDataView Class

Represents a data view on a node or collection of nodes in a hierarchical data structure for a HierarchicalDataSourceControl object. This class cannot be inherited.

Inheritance Hierarchy

System.Object
  System.Web.UI.HierarchicalDataSourceView
    Microsoft.SharePoint.Navigation.SPHierarchyDataView

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

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public NotInheritable Class SPHierarchyDataView _
    Inherits HierarchicalDataSourceView
'Usage
Dim instance As SPHierarchyDataView
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public sealed class SPHierarchyDataView : HierarchicalDataSourceView

Remarks

ASP.NET supports an architecture that enables Web server controls to bind to data and present it in a consistent fashion. Web server controls that bind to data are called data-bound controls, and the classes that facilitate binding are called data source controls. Data source controls can represent any data source: a file, a stream, a relational database, a business object, and so on. Data source controls present data in a consistent way to data-bound controls, regardless of the source or format of the underlying data.

A data source control can be viewed as the combination of the HierarchicalDataSourceControl object and its associated views on the underlying data, called data source view objects. While data source controls that represent tabular data are typically associated with only one named view, hierarchical data source controls support a data source view for each level of hierarchical data that the data source control represents. The level of hierarchical data is identified by a unique hierarchical path that is passed in the viewPath parameter.

Each HierarchicalDataSourceView object defines the capabilities of a data source control for the hierarchical level represented. Some, but not all, classes derived from the DataSourceView class perform operations such as insert, update, delete, and sort. Classes derived from HierarchicalDataSourceView objects are usually read-only.

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

SPHierarchyDataView Members

Microsoft.SharePoint.Navigation Namespace

DataSourceView

HierarchicalDataSourceControl

HierarchicalDataSourceView