共用方式為


DataSourceCollection.Add Method

Adds a data source to the collection.

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

Syntax

'Declaration
Public Function Add ( _
    item As IDataSource _
) As Integer
'Usage
Dim instance As DataSourceCollection
Dim item As IDataSource
Dim returnValue As Integer

returnValue = instance.Add(item)
public int Add(
    IDataSource item
)

Parameters

Return Value

Type: System.Int32

See Also

Reference

DataSourceCollection Class

DataSourceCollection Members

Microsoft.SharePoint.WebControls Namespace