Share via


XsltListFormWebPart.GetDataSource method

Gets the data source instance for the XsltListFormWebPart.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overrides Function GetDataSource As IDataSource
'Usage
Dim instance As XsltListFormWebPart
Dim returnValue As IDataSource

returnValue = instance.GetDataSource()
public override IDataSource GetDataSource()

Return value

Type: System.Web.UI.IDataSource
The data source to which XsltListFormWebPart is bound.

Remarks

This method gets the data source instance from the base class. If this instance is null, the data source is retrieved from the SharePoint content database.

See also

Reference

XsltListFormWebPart class

XsltListFormWebPart members

Microsoft.SharePoint.WebPartPages namespace