共用方式為


BaseXsltListWebPart.AddDataSourceControls method

在 [網頁組件的子控制項的DataSources集合中新增資料來源控制項。

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

Syntax

'宣告
Protected Overrides Sub AddDataSourceControls
'用途

Me.AddDataSourceControls()
protected override void AddDataSourceControls()

備註

這個覆寫取得目前的 Web 組件相關聯的資料來源控制項,並將它加入至子控制項。這個覆寫會在SPDataSourceView上,將指標儲存至 [網頁組件。

請參閱

參照

BaseXsltListWebPart class

BaseXsltListWebPart members

Microsoft.SharePoint.WebPartPages namespace