Share via


TableOfContentsWebPart.CreateDataSource Method

Creates a data source for the Table Of Contents Web Part.

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

Syntax

'Declaration
Protected Overrides Function CreateDataSource As LevelHierarchyDataSource
'Usage
Dim returnValue As LevelHierarchyDataSource

returnValue = Me.CreateDataSource()
protected override LevelHierarchyDataSource CreateDataSource()

Return Value

Type: Microsoft.SharePoint.Publishing.WebControls.LevelHierarchyDataSource

See Also

Reference

TableOfContentsWebPart Class

TableOfContentsWebPart Members

Microsoft.SharePoint.Publishing.WebControls Namespace