共用方式為


DataFormWebPart.DataSources Property

Gets the collection of data source controls.

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

Syntax

'Declaration
<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage.None)> _
Public Overridable ReadOnly Property DataSources As DataSourceCollection
    Get
'Usage
Dim instance As DataFormWebPart
Dim value As DataSourceCollection

value = instance.DataSources
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[BrowsableAttribute(false)]
[WebPartStorageAttribute(Storage.None)]
public virtual DataSourceCollection DataSources { get; }

Property Value

Type: Microsoft.SharePoint.WebControls.DataSourceCollection
Returns a collection of the data source controls that are stored in the current DataFormWebPart object.

See Also

Reference

DataFormWebPart Class

DataFormWebPart Members

Microsoft.SharePoint.WebPartPages Namespace