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
item
Type: System.Web.UI.IDataSourceA IDataSource interface.
Return Value
Type: System.Int32