DataFormWebPart.ConnectToDataSourceControl method
代表控制項,是否為此網頁組件連接的資料表單的資料來源。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Protected Overridable Function ConnectToDataSourceControl As Boolean
'用途
Dim returnValue As Boolean
returnValue = Me.ConnectToDataSourceControl()
protected virtual bool ConnectToDataSourceControl()
傳回值
Type: System.Boolean
true如果連線成功。否則, false。
備註
資料來源控制項連接至資料來源,例如資料庫、 實體類別或中介層物件,然後擷取或更新資料。實作IDataSource介面的任何類別是資料來源控制項。DataSourceID屬性所識別的資料來源。