共用方式為


XsltListViewWebPart.GetDataSource Method

Gets the data source instance for the XsltListViewWebPart.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

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

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

Return Value

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

Remarks

Returns the data source for the SPList.

See Also

Reference

XsltListViewWebPart Class

XsltListViewWebPart Members

Microsoft.SharePoint.WebPartPages Namespace