Share via


TableOfContentsDataSource.GetHierarchicalView Method

Gets and returns the TableOfContentsDataSourceView object if it is not already created.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Protected Overrides Function GetHierarchicalView ( _
    viewPath As String _
) As HierarchicalDataSourceView
'Usage
Dim viewPath As String
Dim returnValue As HierarchicalDataSourceView

returnValue = Me.GetHierarchicalView(viewPath)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
protected override HierarchicalDataSourceView GetHierarchicalView(
    string viewPath
)

Parameters

Return Value

Type: System.Web.UI.HierarchicalDataSourceView
Returns HierarchicalDataSourceView.

Remarks

If the TableOfContentsDataSourceView is already created, return the previously created view.

See Also

Reference

TableOfContentsDataSource Class

TableOfContentsDataSource Members

Microsoft.SharePoint.Publishing.WebControls Namespace