Share via


TableOfContentsWebPart.CreateDataSource method

Creates a data source for the TableOfContentsWebPart object.

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