SPDataSource Constructor (SPList)
Initializes a new instance of the SPDataSource class with a specified list as the source of data.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub New ( _
list As SPList _
)
'Usage
Dim list As SPList
Dim instance As New SPDataSource(list)
public SPDataSource(
SPList list
)
Parameters
list
Type: Microsoft.SharePoint.SPListThe list that the query will operate against.
Remarks
This overload of the constructor automatically initializes parameters for select, insert, update, and delete operations with the string representation of the SPList.ID property.