SPList.AppendDataTable - Méthode
Appends the results returned by a query to an existing data table.
Espace de noms : Microsoft.SharePoint
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Sub AppendDataTable ( _
query As SPQuery, _
flags As SPListGetDataTableOptions, _
dataTable As DataTable, _
<OutAttribute> ByRef position As SPListItemCollectionPosition _
)
'Utilisation
Dim instance As SPList
Dim query As SPQuery
Dim flags As SPListGetDataTableOptions
Dim dataTable As DataTable
Dim position As SPListItemCollectionPosition
instance.AppendDataTable(query, flags, _
dataTable, position)
public void AppendDataTable(
SPQuery query,
SPListGetDataTableOptions flags,
DataTable dataTable,
out SPListItemCollectionPosition position
)
Paramètres
query
Type : Microsoft.SharePoint.SPQueryThe query that will be used to select data. Only the fields that are specified in the query are returned.
flags
Type : Microsoft.SharePoint.SPListGetDataTableOptionsAn enumeration value that specifies options for populating the data table with the values of fields in list items.
dataTable
Type : System.Data.DataTableA data table to receive the results of the query.
position
Type : Microsoft.SharePoint.SPListItemCollectionPositionA reference to an object that will receive paging information.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The argument to the dataTable parameter is une référence Null (Rien dans Visual Basic), or the number of columns in the data table does not match the number of fields returned by the query. |
Voir aussi
Référence
Microsoft.SharePoint - Espace de noms
GetDataTable(SPQuery, SPListGetDataTableOptions, SPListItemCollectionPosition)