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
viewPath
Type: System.StringA String that represents the path to the hierarchical view.
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