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